Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cosmos/airflow/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ def build_airflow_graph( # noqa: C901 TODO: https://github.com/astronomer/astro
"""
tasks_map: dict[str, TaskGroup | BaseOperator] = {}
task_or_group: TaskGroup | BaseOperator | None
producer_task: BaseOperator | None = None

# Identify test nodes that should be run detached from the associated dbt resource nodes because they
# have multiple parents
Expand Down Expand Up @@ -947,8 +948,7 @@ def build_airflow_graph( # noqa: C901 TODO: https://github.com/astronomer/astro

create_airflow_task_dependencies(nodes, tasks_map)

if execution_mode in (ExecutionMode.WATCHER, ExecutionMode.WATCHER_KUBERNETES):
setup_operator_args = getattr(execution_config, "setup_operator_args", None) or {}
if producer_task:
_add_watcher_dependencies(
dag=dag,
producer_airflow_task=producer_task,
Expand Down