You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/stepfunctions/steps/states.py
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -254,10 +254,11 @@ def accept(self, visitor):
254
254
255
255
defadd_retry(self, retry):
256
256
"""
257
-
Add a Retry block or a list of Retry blocks to the tail end of the list of retriers for the state.
257
+
Add a retrier or a list of retriers to the tail end of the list of retriers for the state.
258
+
See `Error handling in Step Functions <https://docs.aws.amazon.com/step-functions/latest/dg/concepts-error-handling.html#error-handling-retrying-after-an-error>`_ for more details.
258
259
259
260
Args:
260
-
retry (Retry or list(Retry)): Retry block(s) to add.
261
+
retry (Retry or list(Retry)): A retrier or list of retriers to add.
Add a Catch block or a list of Catch blocks to the tail end of the list of catchers for the state.
270
+
Add a catcher or a list of catchers to the tail end of the list of catchers for the state.
271
+
See `Error handling in Step Functions <https://docs.aws.amazon.com/step-functions/latest/dg/concepts-error-handling.html#error-handling-fallback-states>`_ for more details.
270
272
271
273
Args:
272
-
catch (Catch or list(Catch): Catch block(s) to add.
274
+
catch (Catch or list(Catch): catcher or list of catchers to add.
state_id (str): State name whose length **must be** less than or equal to 128 unicode characters. State names **must be** unique within the scope of the whole state machine.
494
-
retry (Retry or list(Retry), optional): Retry block(s) to add to list of Retriers that define a retry policyin case the state encounters runtime errors
495
-
catch (Catch or list(Catch), optional): Catch block(s) to add to list of Catchers that define a fallback state that is executed if the state encounters runtime errors and its retry policy is exhausted or isn't defined
496
+
retry (Retry or list(Retry), optional): A retrier or list of retriers that define the state's retry policy. See `Error handling in Step Functions <https://docs.aws.amazon.com/step-functions/latest/dg/concepts-error-handling.html#error-handling-retrying-after-an-error>`_ for more details.
497
+
catch (Catch or list(Catch), optional): A catcher or list of catchers that define a fallback state. See `Error handling in Step Functions <https://docs.aws.amazon.com/step-functions/latest/dg/concepts-error-handling.html#error-handling-fallback-states>`_ for more details.
496
498
comment (str, optional): Human-readable comment or description. (default: None)
497
499
input_path (str, optional): Path applied to the state’s raw input to select some or all of it; that selection is used by the state. (default: '$')
498
500
parameters (dict, optional): The value of this field becomes the effective input for the state.
state_id (str): State name whose length **must be** less than or equal to 128 unicode characters. State names **must be** unique within the scope of the whole state machine.
551
553
iterator (State or Chain): State or chain to execute for each of the items in `items_path`.
552
-
retry (Retry or list(Retry), optional): Retry block(s) to add to list of Retriers that define a retry policyin case the state encounters runtime errors
553
-
catch (Catch or list(Catch), optional): Catch block(s) to add to list of Catchers that define a fallback state that is executed if the state encounters runtime errors and its retry policy is exhausted or isn't defined
554
+
retry (Retry or list(Retry), optional): A retrier or list of retriers that define the state's retry policy. See `Error handling in Step Functions <https://docs.aws.amazon.com/step-functions/latest/dg/concepts-error-handling.html#error-handling-retrying-after-an-error>`_ for more details.
555
+
catch (Catch or list(Catch), optional): A catcher or list of catchers that define a fallback state. See `Error handling in Step Functions <https://docs.aws.amazon.com/step-functions/latest/dg/concepts-error-handling.html#error-handling-fallback-states>`_ for more details.
554
556
items_path (str, optional): Path in the input for items to iterate over. (default: '$')
555
557
max_concurrency (int, optional): Maximum number of iterations to have running at any given point in time. (default: 0)
556
558
comment (str, optional): Human-readable comment or description. (default: None)
state_id (str): State name whose length **must be** less than or equal to 128 unicode characters. State names **must be** unique within the scope of the whole state machine.
609
-
retry (Retry or list(Retry), optional): Retry block(s) to add to list of Retriers that define a retry policyin case the state encounters runtime errors
610
-
catch (Catch or list(Catch), optional): Catch block(s) to add to list of Catchers that define a fallback state that is executed if the state encounters runtime errors and its retry policy is exhausted or isn't defined
611
+
retry (Retry or list(Retry), optional): A retrier or list of retriers that define the state's retry policy. See `Error handling in Step Functions <https://docs.aws.amazon.com/step-functions/latest/dg/concepts-error-handling.html#error-handling-retrying-after-an-error>`_ for more details.
612
+
catch (Catch or list(Catch), optional): A catcher or list of catchers that define a fallback state. See `Error handling in Step Functions <https://docs.aws.amazon.com/step-functions/latest/dg/concepts-error-handling.html#error-handling-fallback-states>`_ for more details.
611
613
resource (str): A URI that uniquely identifies the specific task to execute. The States language does not constrain the URI scheme nor any other part of the URI.
612
614
timeout_seconds (int, optional): Positive integer specifying timeout for the state in seconds. If the state runs longer than the specified timeout, then the interpreter fails the state with a `States.Timeout` Error Name. (default: 60)
613
615
timeout_seconds_path (str, optional): Path specifying the state's timeout value in seconds from the state input. When resolved, the path must select a field whose value is a positive integer.
0 commit comments