Created
June 22, 2016 14:54
-
-
Save criccomini/1d50130d32db0a61905ec4e65b55c32d to your computer and use it in GitHub Desktop.
airflow-supervisord.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Configuration for Airflow webserver and scheduler in Supervisor | |
[program:airflow] | |
command=/bin/airflow webserver | |
stopsignal=QUIT | |
stopasgroup=true | |
user=airflow | |
stdout_logfile=/var/log/airflow/airflow-stdout.log | |
stderr_logfile=/var/log/airflow/airflow-stderr.log | |
environment=HOME="/home/airflow",AIRFLOW_HOME="/etc/airflow",TMPDIR="/storage/airflow_tmp" | |
[program:airflowscheduler] | |
command=/bin/airflow scheduler | |
stopsignal=QUIT | |
stopasgroup=true | |
killasgroup=true | |
user=airflow | |
stdout_logfile=/var/log/airflow/airflow-scheduler-stdout.log | |
stderr_logfile=/var/log/airflow/airflow-scheduler-stderr.log | |
environment=HOME="/home/airflow",AIRFLOW_HOME="/etc/airflow",TMPDIR="/storage/airflow_tmp" | |
autorestart=true |
Supervisor is a good way to run any long running process that needs to be restarted automatically
Does airflow webserver need autostart=true, autorestart=true as well?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
would you still recommend using supervisor for airflow services?