I couldn't find a documentation on, in which task state does AWS interrupt a Fargate spot task ?
- Can interruption happen during "provisioning", "pending" and "deprovisioning" states as well ?
- Do interruptions only happen during "running" state ?
I ask this because I have a code running on Fargate spot but runtime is less than 1 minute (way below termination duration - from warning to task being stopped). So in my case if interruption happens during "running" state only, I wouldn't bother about handling interruption.
Although I haven't found any documentation on this, I have solved this like following:
An answer to this question will add to knowledge of general audience is why I will leave the question here.