Skip to content

Commit

Permalink
Prevent GeneratorExit from crashing executor tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
maximestlaurent-flare authored and isra17 committed Sep 12, 2024
1 parent 4830b42 commit f74d53a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/saturn_engine/worker/executors/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def run_queue(self) -> None:
while self.is_running:
processable = await self.poll()
processable._executing_context.callback(self.queue.task_done)
with contextlib.suppress(Exception), processable.saturn_context():
with contextlib.suppress(BaseException), processable.saturn_context():
async with (
processable._context,
processable._executing_context,
Expand Down

0 comments on commit f74d53a

Please sign in to comment.