Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f2f9b7

Browse files
authored
Adds SnipSync for Python's Activity Retry (temporalio#11)
1 parent 0b1c586 commit 7f2f9b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hello/hello_activity_retry.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ async def run(self, name: str) -> str:
3232
# for an unlimited amount of time and an unlimited number of attempts.
3333
# We'll keep those defaults except we'll set the maximum interval to
3434
# just 2 seconds.
35+
# @@@SNIPSTART python-activity-retry
3536
return await workflow.execute_activity(
3637
compose_greeting,
3738
ComposeGreetingInput("Hello", name),
3839
start_to_close_timeout=timedelta(seconds=10),
3940
retry_policy=RetryPolicy(maximum_interval=timedelta(seconds=2)),
4041
)
42+
# @@@SNIPEND
4143

4244

4345
async def main():

0 commit comments

Comments
 (0)