Ver Fonte

Fixes typo that caused a bogus maxtasksperchild deadlock warning

Ask Solem há 11 anos atrás
pai
commit
103b41e156
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      celery/concurrency/processes.py

+ 2 - 2
celery/concurrency/processes.py

@@ -65,7 +65,7 @@ UNAVAIL = frozenset([errno.EAGAIN, errno.EINTR, errno.EBADF])
 
 
 MAXTASKS_NO_BILLIARD = """\
 MAXTASKS_NO_BILLIARD = """\
     maxtasksperchild enabled but billiard C extension not installed!
     maxtasksperchild enabled but billiard C extension not installed!
-    This may lead to a deadlock, please install the billiard C extension.
+    This may lead to a deadlock, so please install the billiard C extension.
 """
 """
 
 
 #: Constant sent by child process when started (ready to accept work)
 #: Constant sent by child process when started (ready to accept work)
@@ -545,7 +545,7 @@ class TaskPool(BasePool):
         """
         """
         if self.options.get('maxtasksperchild'):
         if self.options.get('maxtasksperchild'):
             try:
             try:
-                from billiard import Connection
+                from billiard.connection import Connection
                 Connection.send_offset
                 Connection.send_offset
             except (ImportError, AttributeError):
             except (ImportError, AttributeError):
                 # billiard C extension not installed
                 # billiard C extension not installed