diff --git a/docs/guides/run_dbt/airflow-worker/watcher-execution-mode.rst b/docs/guides/run_dbt/airflow-worker/watcher-execution-mode.rst index 5375cd461e..61e235b5a2 100644 --- a/docs/guides/run_dbt/airflow-worker/watcher-execution-mode.rst +++ b/docs/guides/run_dbt/airflow-worker/watcher-execution-mode.rst @@ -379,6 +379,15 @@ This use case is not currently supported by the ``ExecutionMode.WATCHER``, since We have a follow-up ticket to `further investigate this use case `_. +Concurrent DAG runs with ``depends_on_past`` +'''''''''''''''''''''''''''''''''''''''''''' + +When ``depends_on_past=True`` is used together with concurrent DAG runs, a race can occur between consecutive runs where the next run's producer starts while the previous run's consumer fallback is still executing, causing two dbt processes to write to the same models concurrently. + +As a workaround, set ``max_active_runs=1`` on the DAG. + +For details, see `#2596 `_. + Advanced config +++++++++++++++