Browse Source

[asynpool] Fixed typo in on_stop_not_started possibly extending shutdown time (Issue #2606)

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

+ 1 - 1
celery/concurrency/asynpool.py

@@ -319,7 +319,7 @@ class ResultHandler(_pool.ResultHandler):
             pending_remove_fd = set()
             for fd in outqueues:
                 self._flush_outqueue(
-                    fd, pending_remove_fd.discard, fileno_to_outq,
+                    fd, pending_remove_fd.add, fileno_to_outq,
                     on_state_change,
                 )
                 try: