MCPcopy
hub / github.com/celery/celery / install_cry_handler

Function install_cry_handler

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

Source from the content-addressed store, hash-verified

488
489
490def install_cry_handler(sig='SIGUSR1'):
491 # PyPy does not have sys._current_frames
492 if is_pypy: # pragma: no cover
493 return
494
495 def cry_handler(*args):
496 """Signal handler logging the stack-trace of all active threads."""
497 with in_sighandler():
498 safe_say(cry())
499 platforms.signals[sig] = cry_handler
500
501
502def install_rdb_handler(envvar='CELERY_RDBSIG',

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected