airflow webserver --debug &  # debug 模式,在后台启动webserver

 

airflow list_dags

airflow list_tasks tutorial  # 列出tutorial dag所有的任务

airflow list_tasks tutorial --tree  # tutorial dag 任务继承关系

airflow test tutorial print_date 2015-06-01  # 测试print_date task

airflow test: 在本地运行任务,输出到屏幕,不用担心依赖,不与数据库交互,只是用于测试单个独立的instance

 

airflow backfill tutorial -s 2015-06-01 -e 2015-06-07  # 在指定的日期之间启动backfill

airflow backfill:  与airflow test不同,backfill考虑依赖,将log输出到文件,并且与数据库交互

 

airflow连接形式,postgres://user:password@localhost:5432/master

airflow flask 调试断点设置,http://garmoncheg.blogspot.com/2018/03/run-flask-with-debug-in-pycharm.html, user_reloader=False

airflow.cfg中mysql连接应当指定charset

 

调度有heartbeat

executor有heartbeat

job有heartbeat, 这个heartbeat如果长时间没反应,会杀任务

 

posted on 2019-03-09 16:45  Go_Forward  阅读(227)  评论(0编辑  收藏  举报