Skip to content

task run: a container task at default sizing fails, because Docker's install is OOM-killed on t4g.nano (and is classified app_error) #1180

Closed

Description

@scttfrdmn

Measured in experiment E1 (#1171) on spawn v0.135.1, us-east-1, 2026-10-19. The run failed 3 of 3 times.

What happened:

  • A container TaskSpec with resources: {cpu: 2} sizes to t4g.nano (0.5 GiB). The dry run prints 0 GiB.
  • On that instance the wrapper's sudo dnf install -y docker is OOM-killed (Killed in command.log) after 92–480 s.
  • The task then fails with sudo: docker: command not found.
  • The completion record says state: failed, retry_class: app_error, retryable=false. That's an infrastructure failure, not the application's.
  • With memory_gib: 4 (sizing picks t4g.medium) all 3 succeeded. Docker install took ~66 s and the image pull ~1 s.

Fix:

  1. Size with a memory floor. When container is set, sizing should require enough memory for Docker plus the image. Measure the floor; 1–2 GiB is likely.
  2. Classify the failure correctly. A Docker install or daemon-start failure should be staging_error (or a new infrastructure class) and retryable, not app_error.

Gates:

  • A container spec with only cpu must never size below the floor.
  • A wrapper whose Docker install fails must not report app_error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions