1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
By default it looks for running tasks. You need to look for stopped tasks.
taskResponse = ecs_client.list_tasks(
cluster=cluster_name,
serviceName=serviceName,
desiredStatus='STOPPED'
)
desiredStatus (string) – The task desired status to use when filtering the ListTasks results. Specifying a desiredStatus of STOPPED limits the results to tasks that Amazon ECS has set the desired status to STOPPED. This can be useful for debugging tasks that aren’t starting properly or have died or finished. The default status filter is RUNNING, which shows tasks that Amazon ECS has set the desired status to RUNNING.
Contenus pertinents
- demandé il y a un an
- demandé il y a 7 mois
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- Comment configurer un proxy HTTP pour Docker et l'agent de conteneur Amazon ECS for Amazon Linux 2 ?AWS OFFICIELA mis à jour il y a 4 ans