Explorar o código

Warn that worker_process_init must not be blocking. Closes #1715

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

+ 4 - 0
docs/userguide/signals.rst

@@ -385,6 +385,10 @@ worker_process_init
 
 
 Dispatched in all pool child processes when they start.
 Dispatched in all pool child processes when they start.
 
 
+Note that handlers attached to this signal must not be blocking
+for more than 4 seconds, or the process will be killed assuming
+it failed to start.
+
 .. signal:: worker_process_shutdown
 .. signal:: worker_process_shutdown
 
 
 worker_process_shutdown
 worker_process_shutdown