Reputation: 8036
I have the following code to trigger a step function.
client = boto3.client('stepfunctions')
response = client.start_execution(
stateMachineArn=stateMachineArn,
name=name,
input={'id': 'my-id'},
headers={'mode': 'normal'}
)
What would happen if I trigger the the same step function with the same "name". Does the existing step function restart, and everything start from fresh inside the step function instance?
Upvotes: 0
Views: 900
Reputation: 201138
This is clearly detailed in the documentation:
StartExecution
is idempotent forSTANDARD
workflows. For aSTANDARD
workflow, ifStartExecution
is called with the same name and input as a running execution, the call will succeed and return the same response as the original request. If the execution is closed or if the input is different, it will return a400 ExecutionAlreadyExists
error. Names can be reused after 90 days.
StartExecution
is not idempotent forEXPRESS
workflows.
Upvotes: 1