Skip to content

Commit 0c88bec

Browse files
committed
debug
1 parent cb46e99 commit 0c88bec

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

celery/contrib/testing/manager.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,10 @@ def wait_until_idle(self):
215215
while True:
216216
try:
217217
count = control.purge()
218-
except ConnectionResetError:
218+
except Exception as e:
219219
# test_multiprocess_producer may trigger this exception
220+
import logging
221+
logging.getLogger(__name__).warning(str(e), exc_info=e)
220222
continue
221223
if count == 0:
222224
break
@@ -226,9 +228,6 @@ def wait_until_idle(self):
226228
while True:
227229
try:
228230
count = sum(len(t) for t in inspect.active().values())
229-
except ConnectionResetError:
230-
# test_multiprocess_producer may trigger this exception
231-
continue
232231
except ContentDisallowed:
233232
# test_security_task_done may trigger this exception
234233
break

0 commit comments

Comments
 (0)