MCPcopy
hub / github.com/celery/celery / in_sighandler

Function in_sighandler

celery/utils/log.py:63–69  ·  view source on GitHub ↗

Context that records that we are in a signal handler.

()

Source from the content-addressed store, hash-verified

61
62@contextmanager
63def in_sighandler():
64 """Context that records that we are in a signal handler."""
65 set_in_sighandler(True)
66 try:
67 yield
68 finally:
69 set_in_sighandler(False)
70
71
72def logger_isa(l, p, max=1000):

Callers 6

test_logging_proxyMethod · 0.90
_handle_requestFunction · 0.90
cry_handlerFunction · 0.90
rdb_handlerFunction · 0.90
warn_on_HUP_handlerFunction · 0.90

Calls 1

set_in_sighandlerFunction · 0.85

Tested by 2

test_logging_proxyMethod · 0.72