Browse Source

Billiard send_offset test cannot just check for _billiard

Ask Solem 11 năm trước cách đây
mục cha
commit
f27ecc574c
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      celery/concurrency/processes.py

+ 2 - 2
celery/concurrency/processes.py

@@ -453,8 +453,8 @@ class TaskPool(BasePool):
         """
         if self.options.get('maxtasksperchild'):
             try:
-                import _billiard  # noqa
-                _billiard.Connection.send_offset
+                from billiard import Connection
+                Connection.send_offset
             except (ImportError, AttributeError):
                 # billiard C extension not installed
                 warning(MAXTASKS_NO_BILLIARD)