Skip to content Skip to sidebar Skip to footer

How To Run Airflow With Celeryexecutor On A Custom Docker Image

I am adding airflow to a web application that manually adds a directory containing business logic to the PYTHON_PATH env var, as well as does additional system-level setup that I w

Solution 1:

try using nohup. https://en.wikipedia.org/wiki/Nohup

nohup airflow scheduler >scheduler.log &

in your case, you would update your entrypoint as follows:

if [ $SERVICE == "airflow" ]; then
    airflow initdb
    nohup airflow scheduler > scheduler.log &
    nohup airflow webserver
fi

Post a Comment for "How To Run Airflow With Celeryexecutor On A Custom Docker Image"