fix(aws): run a cold EC2 task again once its instance is up
ECS turns enableExecuteCommand off on a RunTask that has to wait for an instance (PROVISIONING behind a capacity provider), and the task keeps it off once placed: verified live (CloudTrail shows true in the request, false in the answer; a RunTask with an instance up keeps it). Such a task can never be reached, so every cold EC2 start timed out. A cold start now lets that first task bring the instance up, stops it as soon as it is placed, waits for it to stop and runs the task again onto the instance; a second task without ECS Exec is stopped and reported. A live task found with ECS Exec off is stopped and replaced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bf5a810e0d
commit
43fcc520ab
5 files changed
+225
-8
No files matched your search
@@ -277,6 +277,7 @@ fn live(id: &str) -> TaskInfo {
|
||||
),
|
||||
runtime_id: None,
|
||||
container_instance_arn: None,
|
||||
exec_enabled: true,
|
||||
exec_agent_running: false,
|
||||
exit_code: None,
|
||||
owner: Some(USER.into()),
|
||||
|
||||
Reference in new issue
Block a user