Airflow BashOperator doesn't work but PythonOperator does

我的梦境 提交于 2019-12-03 16:37:41

Technically it's not that the BashOperator doesn't work, it's just that you don't see the stdout of the Bash command in the Airflow logs. This is a known issue and a ticket has already been filed on Airflow's issue tracker: https://issues.apache.org/jira/browse/AIRFLOW-2674

The proof of the fact that BashOperator does work is that if you run your sleep operator with

airflow test tutorial sleep 2018-01-01

you will have to wait 5 seconds before it terminates, which is the behaviour you'd expect from the Bash sleep command.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!