Skip to content

Commit 88b3a88

Browse files
committed
fix: periodic polling sample
1 parent 971243b commit 88b3a88

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

polling/periodic_sequence/workflows.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,5 @@ 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)

0 commit comments

Comments
 (0)