Repository: incubator-airflow Updated Branches: refs/heads/v1-9-test c6e5ae7c5 -> 00dd06eb0
[AIRFLOW-1698] Remove SCHEDULER_RUNS env var in systemd In the very early days, the Airflow scheduler needed to be restarted every so often to take new DAG_FOLDERS mutations into account properly. This is no longer required. Closes #2677 from mistercrunch/scheduler_runs (cherry picked from commit b464d23a6d9799b75ae53b3f858e779a48115fed) Signed-off-by: Bolke de Bruin <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/00dd06eb Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/00dd06eb Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/00dd06eb Branch: refs/heads/v1-9-test Commit: 00dd06eb0a387f85c1f16ce3aa17fc36473990bc Parents: c6e5ae7 Author: Maxime Beauchemin <[email protected]> Authored: Wed Oct 18 21:55:54 2017 +0200 Committer: Bolke de Bruin <[email protected]> Committed: Wed Oct 18 21:57:31 2017 +0200 ---------------------------------------------------------------------- scripts/systemd/airflow | 4 +--- scripts/systemd/airflow-scheduler.service | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/00dd06eb/scripts/systemd/airflow ---------------------------------------------------------------------- diff --git a/scripts/systemd/airflow b/scripts/systemd/airflow index 5317548..bb2156b 100644 --- a/scripts/systemd/airflow +++ b/scripts/systemd/airflow @@ -16,6 +16,4 @@ # # AIRFLOW_CONFIG= # AIRFLOW_HOME= -# -# required setting, 0 sets it to unlimited. Scheduler will get restart after every X runs -SCHEDULER_RUNS=5 \ No newline at end of file + http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/00dd06eb/scripts/systemd/airflow-scheduler.service ---------------------------------------------------------------------- diff --git a/scripts/systemd/airflow-scheduler.service b/scripts/systemd/airflow-scheduler.service index 95229d6..29daa39 100644 --- a/scripts/systemd/airflow-scheduler.service +++ b/scripts/systemd/airflow-scheduler.service @@ -21,9 +21,9 @@ EnvironmentFile=/etc/sysconfig/airflow User=airflow Group=airflow Type=simple -ExecStart=/bin/airflow scheduler -n ${SCHEDULER_RUNS} +ExecStart=/bin/airflow scheduler Restart=always RestartSec=5s [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target
