Airflow Worker Daemon exits for no visible reason

后端 未结 1 750
时光取名叫无心
时光取名叫无心 2021-01-21 05:48

I have Airflow 1.9 running inside a virtual environment, set up with Celery and Redis and it works well. However, I wanted to daemon-ize the set up and used the instructions her

1条回答
  •  盖世英雄少女心
    2021-01-21 06:28

    Your airflow-worker.service is trying to run the airflow worker as the root user. In order to run airflow worker as root, you must set C_FORCE_ROOT="true" in your airflow environment file (/etc/default/airflow). However, this is not recommended and I suspect it is not the best fix for you.

    When trying to run airflow worker manually as root you should see a warning about this. Because you have not seen this warning I suspect that you are able to start the worker without issue manually because you are running it as a properly configured airflow user and not as root. Thus, the recommended solution would be to change the following lines in your airflow-worker.service file:

    User=airflow
    Group=airflow
    

    0 讨论(0)
提交回复
热议问题