capabilities.work

Stop a Task and Confirm

A 3-step recipe with Amazon Fargate. We can help you get access.

Recipe · 3 steps

Stop a Task and Confirm

Locate a running task, stop it, and confirm it has reached STOPPED.

  1. List the running tasks in the cluster to find one to stop.
  2. Stop the located task, recording the supplied reason.
  3. Poll DescribeTasks until the task reaches STOPPED, re-entering while it is still shutting down.
What you'll need to have ready
  • cluster: Name or ARN of the cluster to operate on.
  • reason: Human-readable reason recorded when the task is stopped.
For your developer

Arazzo workflow amazon-fargate:stop-task-and-confirm, 3 operations: listTasks → stopTask → describeTasks. Specs on APIs.io.