We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents be1f73c + ddc5127 commit ef17a05Copy full SHA for ef17a05
eb_sqs/worker/service.py
@@ -36,7 +36,6 @@ def __init__(self):
36
def process_queues(self, queue_names):
37
# type: (list) -> None
38
signal.signal(signal.SIGTERM, self._exit_called)
39
- signal.signal(signal.SIGKILL, self._exit_called)
40
41
self.write_healthcheck_file()
42
self._last_healthcheck_time = timezone.now()
@@ -191,5 +190,6 @@ def write_healthcheck_file(self):
191
190
with open(settings.HEALTHCHECK_FILE_NAME, 'w') as file:
192
file.write(timezone.now().isoformat())
193
194
- def _exit_called(self):
+ def _exit_called(self, signum, frame):
+ logger.info('[django-eb-sqs] Termination signal called: {}'.format(signum))
195
self._exit_gracefully = True
0 commit comments