使用 .sync 时,step 函数如何知道 ECS 任务何时完成执行 API?任何帮助将不胜感激
最佳答案
How does the step function know when the ECS Task has finished executing an API, when using .sync?
它只是等待任务退出。使用 .sync
时,Step Functions 无法知道任务是成功还是失败,它只知道任务已完成运行。
如果您希望 Step Functions 等待 ECS 发回成功响应,则需要使用 .waitForTaskToken
。
关于amazon-web-services - 在 ECS 任务的步骤函数中使用 .sync,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66873521/