One - One Code All

Blog Content

airflow常用命令暂停任务

Python   2014-06-04 20:44:56

airflow test dag_id task_id execution_date   测试task

示例: airflow test example_hello_world_dag hello_task 20180516


airflow run dag_id task_id execution_date 运行task


airflow run -A dag_id task_id execution_date 忽略依赖task运行task


airflow trigger_dag dag_id -r RUN_ID -e EXEC_DATE  运行整个dag文件


airflow webserver -D  守护进程运行webserver


airflow scheduler -D  守护进程运行调度


airflow worker -D 守护进程运行celery worker


airflow worker -c 1 -D 守护进程运行celery worker并指定任务并发数为1


airflow pause dag_id  暂停任务


airflow unpause dag_id 取消暂停,等同于在管理界面打开off按钮


airflow list_tasks dag_id 查看task列表


airflow clear dag_id 清空任务实例



上一篇:pandas中dataframe过滤列str.contain出现ValueError: cannot index with vector containing NA/NaN values错误的解决方法
下一篇:pandas中dataframe缺失值处理dropna和fillna,删除带有NAN的行或列

The minute you think of giving up, think of the reason why you held on so long.