소스 검색

Fix compat with no billiard C extension

Ask Solem 11 년 전
부모
커밋
0822761ec2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      celery/concurrency/asynpool.py

+ 1 - 1
celery/concurrency/asynpool.py

@@ -973,7 +973,7 @@ class AsynPool(_pool.Pool):
     def _stop_task_handler(task_handler):
         """Called at shutdown to tell processes that we are shutting down."""
         for proc in task_handler.pool:
-            proc.inq._writer.setblocking(1)
+            setblocking(proc.inq._writer, 1)
             try:
                 proc.inq.put(None)
             except OSError as exc: