hussein-awala commented on code in PR #29094:
URL: https://github.com/apache/airflow/pull/29094#discussion_r1166554812
##########
airflow/models/dag.py:
##########
@@ -2789,7 +2789,9 @@ def bulk_write_to_db(
orm_dag.description = dag.description
orm_dag.max_active_tasks = dag.max_active_tasks
orm_dag.max_active_runs = dag.max_active_runs
- orm_dag.has_task_concurrency_limits = any(t.max_active_tis_per_dag
is not None for t in dag.tasks)
+ orm_dag.has_task_concurrency_limits = any(
+ t.max_active_tis_per_dag is not None or
t.max_active_tis_per_dagrun for t in dag.tasks
Review Comment:
I agree, I don't know why the user provide 0 for `max_active_tis_per_dag` or
`max_active_tis_per_dagrun`, but yes I should fix it
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]