From 260f7caf66bc151ba1c8320c6eb2593a18a1906b Mon Sep 17 00:00:00 2001 From: Cosmin Stefan Date: Thu, 30 Apr 2015 11:57:05 +0300 Subject: [PATCH] Enable proper setup of signale handlers for SimpleWorker as well. fixes #523 This allows a SIGTERM to make the worker perform a warm shutdown and cleanly break out of the loop and finish the current job, if any. --- rq/worker.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rq/worker.py b/rq/worker.py index 41daa01..750ebec 100644 --- a/rq/worker.py +++ b/rq/worker.py @@ -646,11 +646,6 @@ class Worker(object): class SimpleWorker(Worker): - def _install_signal_handlers(self, *args, **kwargs): - """Signal handlers are useless for test worker, as it - does not have fork() ability""" - pass - def main_work_horse(self, *args, **kwargs): raise NotImplementedError("Test worker does not implement this method")