Explorar o código

Document list of worker signals

Ask Solem %!s(int64=13) %!d(string=hai) anos
pai
achega
bfec3c301a
Modificáronse 1 ficheiros con 18 adicións e 0 borrados
  1. 18 0
      docs/userguide/workers.rst

+ 18 - 0
docs/userguide/workers.rst

@@ -78,6 +78,24 @@ arguments as it was started with.
     Restarting by HUP is disabled on OS X because of a limitation on
     that platform.
 
+
+.. _worker-process-signals:
+
+Process Signals
+===============
+
+The celeryd main process overrides the following signals:
+
++--------------+-------------------------------------------------+
+| :sig:`TERM`  | Warm shutdown, wait for tasks to complete.      |
++--------------+-------------------------------------------------+
+| :sig:`QUIT`  | Cold shutdown, terminate ASAP                   |
++--------------+-------------------------------------------------+
+| :sig:`USR1`  | Dump traceback for all active threads.          |
++--------------+-------------------------------------------------+
+| :sig:`USR2`  | Remote debug, see :mod:`celery.contrib.rdb`.    |
++--------------+-------------------------------------------------+
+
 .. _worker-concurrency:
 
 Concurrency