Skip to content

Instantly share code, notes, and snippets.

@kahirul
Created June 27, 2020 09:22
Show Gist options
  • Save kahirul/b38ca3e89ca6b3f58ae5a9b23b92bc3f to your computer and use it in GitHub Desktop.
Save kahirul/b38ca3e89ca6b3f58ae5a9b23b92bc3f to your computer and use it in GitHub Desktop.

Revisions

  1. kahirul created this gist Jun 27, 2020.
    17 changes: 17 additions & 0 deletions airflow-scheduler.ini
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    [Unit]
    Description=Airflow scheduler daemon
    After=network.target

    [Service]
    EnvironmentFile=/etc/environment
    User=ubuntu
    Group=ubuntu
    Type=simple
    ExecStart=/bin/bash -c 'source /home/ubuntu/.miniconda3/etc/profile.d/conda.sh && conda activate airflow && airflow scheduler'
    KillMode=process
    Restart=always
    RestartSec=5s
    PrivateTmp=true

    [Install]
    WantedBy=multi-user.target