Skip to content

StepFunctions: Give unnamed executions a UUID name in the parser backend - #10552

Open
akaab-landr wants to merge 1 commit into
getmoto:masterfrom
LandrAudio:sfn-unnamed-executions
Open

akaab-landr wants to merge 1 commit into
getmoto:masterfrom
LandrAudio:sfn-unnamed-executions

Conversation

@akaab-landr

Copy link
Copy Markdown

With execute_state_machine enabled, start_execution() without a name uses None as the execution name, so every unnamed execution gets the same ARN:

client.start_execution(stateMachineArn=arn)  # ...:execution:m:None
client.start_execution(stateMachineArn=arn)  # ...:execution:m:None again

AWS, and Moto's default backend, generate a UUID. This PR does the same, using Moto's seeded random.
Test: test_start_execution_without_name.

… the execution engine

With execute_state_machine enabled, an execution started without a name was called 'None', so every unnamed
execution of a state machine had the same name and ARN (ExecutionAlreadyExists once the first had finished).
Generate a uuid, as the default backend and AWS do.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant