mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
RunTask and StartTask pulled the images and started the containers inside the request, so an unreachable registry held the call for minutes. They now answer PROVISIONING (awsvpc) or PENDING with PENDING containers, as AWS does, and the launch runs on a virtual-thread executor. A failed pull shows on DescribeTasks as STOPPED / TaskFailedToStart, and a StopTask during the pull is no longer overwritten when the containers start. A RunTask response's PENDING containers carried the ExecuteCommandAgent as RUNNING with a lastStartedAt; AWS reports it PENDING with neither. A start failure after a StopTask overwrote the user's reason and UserInitiated code with TaskFailedToStart. AWS reports a container's memoryReservation from the moment RunTask answers. Docker-mode responses had it from the started container; the pending placeholders now carry it too. ECS reports a task as pending from RunTask until it runs, through PROVISIONING as well as PENDING. The cluster's pendingTasksCount was a stored field nothing ever set, and the pending statistics counted only PENDING, so both read 0 while a background launch pulled its image. RunTask now answers before the task's images are pulled, so the test waits for the launch to land the task instead of expecting RUNNING straight away. Closes #7670