首页 > 解决方案 > boto3的ECS服务员的成功/失败条件是什么?

问题描述

Boto3 有 4 个 ECS 服务员,ServicesStable、ServicesStopped、TasksRunning 和 TasksStopped。然而,文档并没有具体说明这些服务员的实际成功和失败条件是什么。例如,

每 6 秒轮询一次 ECS.Client.describe_tasks(),直到达到成功状态。检查失败 100 次后返回错误。

这些服务员究竟在等什么?

标签: boto3amazon-ecs

解决方案


Looks like you got the specific configuration you were looking for but more generally if you're looking for the details of the waiter conditions in boto3 you'll navigate to the botocore data folder on github. Then look in the subfolders for a waiters-2.json file and it will have those details.


推荐阅读