You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/12/23 17:01:40 UTC

[GitHub] [airflow] fhenrywells commented on a diff in pull request #27491: Expand tasks in mapped group at run time

fhenrywells commented on code in PR #27491:
URL: https://github.com/apache/airflow/pull/27491#discussion_r1056498901


##########
tests/models/test_dagrun.py:
##########
@@ -2009,3 +2009,41 @@ def execute(self, context):
         ti.run()
 
     assert sorted(results) == expected
+
+
+def test_mapped_task_group_expands(dag_maker, session):
+    with dag_maker(session=session):
+
+        @task_group
+        def tg(x, y):
+            return MockOperator(task_id="task_2", arg1=x, arg2=y)

Review Comment:
   @uranusjr do you know if it is possible to inspect any of the Mapped Arguments' fields within the task group here at runtime? I'm trying to and I get a type error saying MappedArgument is not subscriptable when trying to index into a dictionary arg



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org