Skip to content

Commit

Permalink
Ignore timeout error from cancel wait (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjpryor authored and assumptionsandg committed May 17, 2024
1 parent bb6174b commit 030453a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync/zenith/sync/processor/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async def schedule_task(
# Wait for the task to actually finish cancelling
try:
await asyncio.wait_for(existing_task, 10)
except asyncio.CancelledError:
except (asyncio.CancelledError, asyncio.TimeoutError):
pass
self.logger.info(
"Scheduling task to process %s event for %s",
Expand Down

0 comments on commit 030453a

Please sign in to comment.