Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
airflow-supervisord.conf
; 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
@john-drews

This comment has been minimized.

Copy link

commented Dec 7, 2018

would you still recommend using supervisor for airflow services?

@rohithreddy

This comment has been minimized.

Copy link

commented Jan 28, 2019

Supervisor is a good way to run any long running process that needs to be restarted automatically

@tmclouisluk

This comment has been minimized.

Copy link

commented Aug 30, 2019

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
You can’t perform that action at this time.