From 10fdec6eddf1e365121f43e1cf17cc84512182b1 Mon Sep 17 00:00:00 2001 From: Lavi Date: Wed, 30 Apr 2025 03:03:32 +0000 Subject: [PATCH] fix: periodic polling sample --- polling/periodic_sequence/workflows.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/polling/periodic_sequence/workflows.py b/polling/periodic_sequence/workflows.py index 917170c1..975b30d3 100644 --- a/polling/periodic_sequence/workflows.py +++ b/polling/periodic_sequence/workflows.py @@ -38,6 +38,7 @@ async def run(self, name: str) -> str: except ActivityError: workflow.logger.error("Activity failed, retrying in 1 seconds") await asyncio.sleep(1) - workflow.continue_as_new(name) - raise Exception("Polling failed after all attempts") + workflow.continue_as_new(name) + # unreachable + return ""