浏览代码

Fixes typo that caused a bogus maxtasksperchild deadlock warning

Ask Solem 11 年之前
父节点
当前提交
103b41e156
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 = """\
     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)
@@ -545,7 +545,7 @@ class TaskPool(BasePool):
         """
         if self.options.get('maxtasksperchild'):
             try:
-                from billiard import Connection
+                from billiard.connection import Connection
                 Connection.send_offset
             except (ImportError, AttributeError):
                 # billiard C extension not installed