airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject incubator-airflow git commit: [AIRFLOW-1698] Remove SCHEDULER_RUNS env var in systemd
Date Wed, 18 Oct 2017 19:57:24 GMT
Repository: incubator-airflow
Updated Branches:
  refs/heads/master 6110139a8 -> b464d23a6


[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


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/b464d23a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/b464d23a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/b464d23a

Branch: refs/heads/master
Commit: b464d23a6d9799b75ae53b3f858e779a48115fed
Parents: 6110139
Author: Maxime Beauchemin <maxime.beauchemin@apache.org>
Authored: Wed Oct 18 21:55:54 2017 +0200
Committer: Bolke de Bruin <bolke@xs4all.nl>
Committed: Wed Oct 18 21:55:57 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/b464d23a/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/b464d23a/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


Mime
View raw message