What happens if I call SendTaskSuccess multiple times for the same task?
A step function workflow I'm working on needs to call an external service and wait for it to complete before continuing, so I'm using WAIT_FOR_TASK_TOKEN integration. The external service does not do task token callbacks, it notifies via SNS. So we have a lambda subscribed to the SNS topic, and when it gets triggered it looks up the appropriate task token then calls SendTaskSuccess to continue the workflow.
However, SNS does not guarantee that a notification will only be delivered once, it could show up multiple times. So what happens if I call SendTaskSuccess with a task token, then call it again with the same task token? My assumption is that it would throw an exception, but I have not found documentation stating that, or exactly what exception would be thrown.
Any help would be appreciated
The second time will fail with a Task does not exist error.
Relevant questions
AWS Step Function Output for container services
asked 9 days agoWhat happens if I call SendTaskSuccess multiple times for the same task?
Accepted Answerasked 2 months agoCharging operate Task for execution time
Accepted Answerasked 5 months agoboto3 ecs.describe_task call returns task missing
asked 16 days agoHow can I get the Image ID after importing a disk image?
asked 9 months agoWaiting for SageMaker CreateTrainingJob to Finish
asked a year agoTrigger Step Function with API Gateway and use Fargate within Step Function?
asked a month agoHow to concatenate character strings in step function for AWS Glue parameters?
Accepted Answerasked 2 years agoStatic IP for lambda
Accepted Answerasked a year agoStep Function to Send Email on Error/Success
asked 4 months ago