Skip to content

fix(executor): any task over an hour is killed — the runner reads its projected attempt token once, and it expires at 3600 s #1449

Done

Description

@athvin

Found in #558's 10M run on er-dev (2026-11-29). Ingest tries 2 and 3 were each killed (exit 137, no heartbeat for 5 minutes). The last heartbeat came 60m05s after the try started: 15:12:34 → 16:12:39.

Cause: configmap-task-template.yaml projects a ServiceAccount token with expirationSeconds: 3600 and points ER_ATTEMPT_TOKEN_FILE at it. exec_task::run_inner reads that file once at startup. Kubelet rotates the file before expiry, but the runner keeps presenting the original. After an hour every heartbeat is refused, the runner fences itself, and the reaper kills the pod. So no task can outlive an hour, and a retry repeats the same death.

Done when the channel re-reads the token file per request, a test proves a rotated file is picked up, and a task running over an hour on er-dev keeps heartbeating.

Activity

  1. added
    followup
    on Nov 29, 2026
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

    followup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions