mis98zb commented on code in PR #32122:
URL: https://github.com/apache/airflow/pull/32122#discussion_r1264883562


##########
airflow/serialization/serialized_objects.py:
##########
@@ -1401,6 +1401,8 @@ def serialize_task_group(cls, task_group: TaskGroup) -> 
dict[str, Any] | None:
                 "value": cls.serialize(expand_input.value),
             }
             encoded["is_mapped"] = True
+            if task_group.max_active_groups_per_dagrun is not None:
+                encoded["max_active_groups_per_dagrun"] = 
task_group.max_active_groups_per_dagrun

Review Comment:
   If the task group is not mapped, it will always only have one instance per 
dag run.
   In this condition, the concurrency limitation is not needed.



-- 
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-unsubscr...@airflow.apache.org

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

Reply via email to