title: What do the different ECS stop times mean?
body: <p>From
  <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_Task.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_Task.html</a> there are multiple &quot;stop&quot; times for a task</p>
  <blockquote>
  <p>stoppedAt</p>
  <p>The Unix timestamp for when the task was stopped (the task transitioned from the RUNNING state to the STOPPED state).</p>
  </blockquote>
  <p>and</p>
  <blockquote>
  <p>stoppingAt</p>
  <p>The Unix timestamp for when the task stops (transitions from the RUNNING state to STOPPED).</p>
  </blockquote>
  <p>and</p>
  <blockquote>
  <p>executionStoppedAt</p>
  <p>The Unix timestamp for when the task execution stopped.</p>
  </blockquote>
  <p>These descriptions seem very similar to me. What do they each mean? Specifically</p>
  <ul>
  <li>What is the difference between <code>stoppedAt</code> and <code>stoppingAt</code>?</li>
  <li>What does it mean for a task execution to stop, and how(/why?) is that different to <code>stoppedAt</code> or <code>stoppingAt</code>?</li>
  <li>Up to which time is the task billed for?</li>
  </ul>
  <hr />
  <p>As an examples, calling <code>describe-tasks</code> for a recently stopped task gives:</p>
  <pre><code>&quot;executionStoppedAt&quot;: 1568462761.0,
  &quot;stoppingAt&quot;:         1568462761.499,
  &quot;stoppedAt&quot;:          1568462817.635,
  </code></pre>
  <p>and another task gives</p>
  <pre><code>&quot;executionStoppedAt&quot;: 1568464247.0,
  &quot;stoppingAt&quot;:         1568464246.39,
  &quot;stoppedAt&quot;:          1568464300.417,
  </code></pre>
  <p>which interestingly shows that the various times are not always in the same order.</p>