Skip to content

Commit b561bd8

Browse files
author
Ace Nassri
authored
Clarify infinite retries example (#4097)
Addresses b/158467672
1 parent 9a9ce78 commit b561bd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/tips/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def avoid_infinite_retries(data, context):
204204

205205
# Do what the function is supposed to do
206206
print('Processed {} (age {}ms)'.format(context.event_id, event_age_ms))
207-
return
207+
return # To retry the execution, raise an exception here
208208
# [END functions_tips_infinite_retries]
209209

210210

0 commit comments

Comments
 (0)