MCPcopy Create free account
hub / github.com/celery/celery / install_cry_handler

Function install_cry_handler

celery/apps/worker.py:546–555  ·  view source on GitHub ↗
(sig='SIGUSR1')

Source from the content-addressed store, hash-verified

544
545
546def install_cry_handler(sig='SIGUSR1'):
547 # PyPy does not have sys._current_frames
548 if is_pypy: # pragma: no cover
549 return
550
551 def cry_handler(*args):
552 """Signal handler logging the stack-trace of all active threads."""
553 with in_sighandler():
554 safe_say(cry())
555 platforms.signals[sig] = cry_handler
556
557
558def install_rdb_handler(envvar='CELERY_RDBSIG',

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected