1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/airflow/systemd/airflow-worker.service

17 lines
378 B
SYSTEMD
Raw Permalink Normal View History

2019-10-17 17:59:58 +02:00
[Unit]
Description=Airflow celery worker daemon
After=network.target postgresql.service redis-server.service
Wants=postgresql.service redis-server.service
[Service]
EnvironmentFile=/etc/default/airflow
User=airflow
Group=airflow
Type=simple
ExecStart=/home/airflow/.virtualenvs/airflow/bin/airflow worker
Restart=on-failure
RestartSec=10s
[Install]
WantedBy=multi-user.target