How does the step function know when the ECS Task has finished executing an API, when using .sync? Any help will be appreciated
How does the step function know when the ECS Task has finished executing an API, when using .sync? Any help will be appreciated
How does the step function know when the ECS Task has finished executing an API, when using .sync?
It just waits for the task to exit. There is no way for Step Functions to know if the task succeeded or failed when using .sync it just knows the task finished running.
If you want Step Functions to wait for ECS to send back a success response, you need to use .waitForTaskToken instead.