Skip to main content

Module runtime

Module runtime 

Source
Expand description

Docker/Podman-based ECS task execution.

Mirrors the Lambda ContainerRuntime approach (auto-detect CLI, forward localhost → host.docker.internal) but scoped for ECS’s different lifecycle: tasks are ephemeral, so there is no warm-container pool. Each run_task spawns a background tokio task that pulls the image, starts the container, waits for exit, captures logs, and updates shared ECS state in place.

Structs§

EcsRuntime
Docker/Podman executor for ECS tasks.

Enums§

RuntimeError

Functions§

sleep
Short helper for tests + snapshot code to sleep between state transitions. Exposed on the crate boundary to keep test timing centralized.