Skip to content

Commit 48c107b

Browse files
reraise
1 parent 3776869 commit 48c107b

File tree

1 file changed

+3
-3
lines changed
  • packages/celery-library/src/celery_library/backends

1 file changed

+3
-3
lines changed

packages/celery-library/src/celery_library/backends/redis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,14 @@ async def consume_task_events(
195195
)
196196
except asyncio.CancelledError:
197197
_logger.debug("Task event consumption cancelled for task %s", task_id)
198-
break
199-
except Exception as exc: # pylint: disable=broad-except
198+
raise
199+
except Exception as exc:
200200
_logger.warning(
201201
"Redis error while consuming task events for task %s: %s. Stopping consumption.",
202202
task_id,
203203
exc,
204204
)
205-
break
205+
raise
206206

207207
if not messages:
208208
continue

0 commit comments

Comments
 (0)