IssueRaiser

Support Task execution timeout(maximum-lifetime for a container) in ECS fargate

### Summary <!-- Please provide a brief outline of the issue --> ECS does not currently support a task execution timeout so that when a task exceeds more than certain period of time, the task must be stopped automatically like how AWS Batch has job timeouts. The task definition does not have a parameter to enforce a task/container execution timeout that will automatically trigger the container to stop after the set time. Use-case example from a customer: I have a NLP model training job I want to run in a fargate container triggered by a lambda function. At some time, a bug might be introduced in the training code that would cause it to run indefinitely. I don't want to accidentally have those tasks piling up and have 50 tasks running for a couple weeks before we notice. That could have a cost implication. Is there a native way to kill a container if it hasn't exited on its own before a certain time? Can this be considered as a feature request?

Posted by nitheesha-amzn on Nov 12, 2019, 4:55 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

pricing (Other)

Support Task execution timeout(maximum-lifetime for a container) in ECS fargate

nitheesha-amznNov 12, 2019, 4:55 PM

### Summary <!-- Please provide a brief outline of the issue --> ECS does not currently support a task execution timeout so that when a task exceeds more than certain period of time, the task must be stopped automatically like how AWS Batch has job timeouts. The task definition does not have a parameter to enforce a task/container execution timeout that will automatically trigger the container to stop after the set time. Use-case example from a customer: I have a NLP model training job I want to run in a fargate container triggered by a lambda function. At some time, a bug might be introduced in the training code that would cause it to run indefinitely. I don't want to accidentally have those tasks piling up and have 50 tasks running for a couple weeks before we notice. That could have a cost implication. Is there a native way to kill a container if it hasn't exited on its own before a certain time? Can this be considered as a feature request?

Comments (0)

No comments yet. Start the discussion.

Comment on this issue