Skip to content

Commit

Permalink
comment out worker_shutdown_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanglen committed May 20, 2024
1 parent 898a512 commit 16e0468
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions indexer_app/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ def listen_to_near_events():
loop.close()


@worker_shutdown.connect
def worker_shutdown_handler(sig, how, exitcode, **kwargs):
if sig == 15:
logger.info(
"Celery worker shutdown initiated by signal 15 (SIGTERM)."
) # avoid logging to Sentry
else:
logger.error("Celery worker shutdown due to signal %d.", sig)
# @worker_shutdown.connect
# def worker_shutdown_handler(sig, how, exitcode, **kwargs):
# if sig == 15:
# logger.info(
# "Celery worker shutdown initiated by signal 15 (SIGTERM)."
# ) # avoid logging to Sentry
# else:
# logger.error("Celery worker shutdown due to signal %d.", sig)


jobs_logger = logging.getLogger("jobs")
Expand Down

0 comments on commit 16e0468

Please sign in to comment.