From 030453a66fe657ef1d7db199ba36267a094ba841 Mon Sep 17 00:00:00 2001 From: Matt Pryor Date: Thu, 16 May 2024 11:31:26 +0100 Subject: [PATCH] Ignore timeout error from cancel wait (#379) --- sync/zenith/sync/processor/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync/zenith/sync/processor/base.py b/sync/zenith/sync/processor/base.py index 81df87bb..99f14761 100644 --- a/sync/zenith/sync/processor/base.py +++ b/sync/zenith/sync/processor/base.py @@ -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",