小编Ngu*_*Tín的帖子

如何限制气流一次只运行1个DAG?

我希望DAG中的所有任务在下一次运行的第一个任务执行之前全部完成。

我有max_active_runs = 1,但是仍然发生。

default_args = {
'depends_on_past': True,
'wait_for_downstream': True,
'max_active_runs': 1,
'start_date': datetime(2018, 03, 04),
'owner': 'tin.nguyen',
'email': ['tin.nguyen@example.com'],
'email_on_failure': True,
'email_on_retry': False,
'retries': 3,
'retry_delay': timedelta(minutes=4)
}

dag = DAG('example', default_args=default_args, schedule_interval = schedule_interval)
Run Code Online (Sandbox Code Playgroud)

(我的所有任务都取决于上一个任务。气流版本为1.8.0)

谢谢

python concurrency airflow

4
推荐指数
2
解决办法
7164
查看次数

标签 统计

airflow ×1

concurrency ×1

python ×1