Skip to content

Commit

Permalink
Fix an incomplete comment (apache#45692)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferruzzi authored Jan 16, 2025
1 parent 8c420b1 commit 93441c9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions airflow/dag_processing/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,8 @@ def update_dags(
dm._dag_display_property_value = dag.dag_display_name
dm.description = dag.description

# These "is not None" checks are because with a LazySerializedDag object where the user hasn't
# specified an explicit value, we don't get the default values from the config in the lazy
# serialized ver
# we just
# These "is not None" checks are because a LazySerializedDag object does not
# provide the default value if the user doesn't provide an explicit value.
if dag.max_active_tasks is not None:
dm.max_active_tasks = dag.max_active_tasks
elif dag.max_active_tasks is None and dm.max_active_tasks is None:
Expand Down

0 comments on commit 93441c9

Please sign in to comment.