From 314eaa6c5c87773c63d938db8248e168d608aacc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Far=C3=ADas=20Santana?= Date: Fri, 21 Jun 2024 01:55:04 +0200 Subject: [PATCH] fix: Type hints and early return --- posthog/temporal/batch_exports/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/posthog/temporal/batch_exports/utils.py b/posthog/temporal/batch_exports/utils.py index ad657190db47f0..742e68db845775 100644 --- a/posthog/temporal/batch_exports/utils.py +++ b/posthog/temporal/batch_exports/utils.py @@ -84,6 +84,8 @@ async def try_set_batch_export_run_to_running(run_id: str | None, logger, timeou the status. This means that, worse case, the batch export status won't be displayed as 'RUNNING' while running. """ if run_id is None: + # Should never land here except in tests of individual activities + yield return background_task = asyncio.create_task(