diff --git a/pixl_core/src/core/patient_queue/subscriber.py b/pixl_core/src/core/patient_queue/subscriber.py index 55a4a5b46..b678c256c 100644 --- a/pixl_core/src/core/patient_queue/subscriber.py +++ b/pixl_core/src/core/patient_queue/subscriber.py @@ -71,7 +71,7 @@ async def run(self, callback: Callable[[bytes], Awaitable[None]]) -> None: try: await asyncio.sleep(0.01) # Avoid very fast callbacks - callback(message.body) + await callback(message.body) except Exception: LOGGER.exception( "Failed to process %s" "Not re-queuing message",