diff --git a/polling/periodic_sequence/workflows.py b/polling/periodic_sequence/workflows.py index 917170c1..3c6d7555 100644 --- a/polling/periodic_sequence/workflows.py +++ b/polling/periodic_sequence/workflows.py @@ -38,6 +38,5 @@ 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)