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 ""