예제 #1
0
파일: worker.py 프로젝트: rwillmer/celery
 def cry_handler(signum, frame):
     """Signal handler logging the stacktrace of all active threads."""
     set_in_sighandler(True)
     try:
         safe_say(cry())
     finally:
         set_in_sighandler(False)
예제 #2
0
 def cry_handler(*args):
     """Signal handler logging the stacktrace of all active threads."""
     set_in_sighandler(True)
     try:
         safe_say(cry())
     finally:
         set_in_sighandler(False)
예제 #3
0
 def cry_handler(*args):
     """Signal handler logging the stacktrace of all active threads."""
     with in_sighandler():
         safe_say(cry())
예제 #4
0
 def cry_handler(signum, frame):
     """Signal handler logging the stacktrace of all active threads."""
     logger.error("\n" + cry())
예제 #5
0
파일: worker.py 프로젝트: aleszoulek/celery
 def cry_handler(signum, frame):
     """Signal handler logging the stacktrace of all active threads."""
     logger.error("\n" + cry())