Skip to content

Commit 10fdec6

Browse files
committed
fix: periodic polling sample
1 parent 971243b commit 10fdec6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

polling/periodic_sequence/workflows.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ async def run(self, name: str) -> str:
3838
except ActivityError:
3939
workflow.logger.error("Activity failed, retrying in 1 seconds")
4040
await asyncio.sleep(1)
41-
workflow.continue_as_new(name)
4241

43-
raise Exception("Polling failed after all attempts")
42+
workflow.continue_as_new(name)
43+
# unreachable
44+
return ""

0 commit comments

Comments
 (0)