Skip to content

TTL-killed task on 0.135.1 left nothing under its results prefix: no command.log, no completion.json (terminal-flush hook didn't fire?) #1186

Closed

Description

@scttfrdmn

What happened: task cookbook-su2-real-probe0-b, spawn 0.135.1, spawn task run container task on c8g.4xlarge i-0efd893d163f51173 (us-west-2).

  • Launched 2026-10-19T09:01:13Z with lifecycle.ttl: 1h.
  • Terminated with StateTransitionReason: User initiated (2026-10-19 10:01:34 GMT), i.e. at TTL.
  • Afterwards, s3://spawn-results-…/tasks/ has no cookbook-su2-real-probe0-b/ prefix at all: no command.log, completion.json or .exitcode.
  • Status still reads running (no completion record yet).

Why it looks like a regression: since 0.116.0, a lifecycle kill should run the task terminal-flush hook before the stop. That hook is runPreStop → flushTaskRecord (pkg/agent/agent.go ~L2254–2270, pkg/agent/taskflush.go, spawn#632/#643), and it uploads command.log and a terminal_reason completion record. Here it appears not to have run, or not to have reached S3. Other tasks from the same session and account wrote their prefixes normally, including a sibling launched minutes earlier (cookbook-su2-real-probe-p1/).

What I can't see from outside: spored's journal on the terminated box. If the hook ran and the upload failed, the #186 notification path should have recorded that somewhere. Is there a place a user can find it after termination?

Related, but a different shape: #1179, where a full /tmp produced an empty record. This time the prefix doesn't exist at all.

Activity

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions