Remove SIGHUP handling in scheduler
This was deprecated in 3.3.0; remove it for 4.0. Change-Id: I75463f2c29f6399cba171386bd475a063fa01ef1
This commit is contained in:
parent
7ae2805a5a
commit
a36400c0f3
|
@ -395,8 +395,7 @@ not read from a git repository. Zuul supports two kinds of reconfigurations.
|
|||
The full reconfiguration refetches and reloads the configuration of
|
||||
all tenants. To do so, run ``zuul-scheduler full-reconfigure``. For
|
||||
example this can be used to fix eventual configuration inconsistencies
|
||||
after connection problems to Gerrit/Github. The signal based method by
|
||||
sending a `SIGHUP` signal to the scheduler PID is deprecated.
|
||||
after connection problems to Gerrit/Github.
|
||||
|
||||
The smart reconfiguration reloads only the tenants that changed their
|
||||
configuration in the tenant config file. To do so, run
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
upgrade:
|
||||
- |
|
||||
Signal based triggering of full-reconfiguration in the scheduler
|
||||
(deprecated since 3.3.0) has been removed. Use ``zuul-scheduler
|
||||
full-reconfigure`` instead.
|
|
@ -66,11 +66,6 @@ class Scheduler(zuul.cmd.ZuulDaemonApp):
|
|||
except Exception:
|
||||
self.log.exception("Reconfiguration failed:")
|
||||
|
||||
def reconfigure_handler(self, signum, frame):
|
||||
signal.signal(signal.SIGHUP, signal.SIG_IGN)
|
||||
self.fullReconfigure()
|
||||
signal.signal(signal.SIGHUP, self.reconfigure_handler)
|
||||
|
||||
def exit_handler(self, signum, frame):
|
||||
self.sched.exit()
|
||||
self.sched.join()
|
||||
|
@ -178,8 +173,6 @@ class Scheduler(zuul.cmd.ZuulDaemonApp):
|
|||
self.sched.stop()
|
||||
sys.exit(1)
|
||||
|
||||
signal.signal(signal.SIGHUP, self.reconfigure_handler)
|
||||
|
||||
if self.args.nodaemon:
|
||||
signal.signal(signal.SIGTERM, self.exit_handler)
|
||||
while True:
|
||||
|
|
Loading…
Reference in New Issue