Skip to content

Per-stage job logs route #545

Done

Description

@athvin

Open work found in frontend-design.md §7.11 · release post-appexchange · estimate 1.0 eng-weeks

Persist and serve per-stage stderr so the Runs screen can show why a stage failed. Named in backend-design §14.

How this was verified

jobs/{job_id} + /cancel, /resume, /tasks all exist; no .../logs route does.


Coverage, sizing and status were verified against this repo on 2026-11-05, not taken from the doc's checkbox — several docs/ checkboxes are stale in the direction of understating what is built.


Product context (2026-11-26)

Why this matters for the API product: Results and recover. A customer whose run fails needs the reason through the API. Raw stderr is an operator concern.

Current state: The core of the ticket shipped through the task ledger. GET /v1/orgs/{org}/datasets/{ds}/jobs/{job_id}/tasks (rust/crates/er-server/src/lib.rs:14908, handler lib.rs:4975-5017) serves TaskInstanceWire for every try. The wire includes exit_code, termination_reason, error_class, and error_detail (chain-flattened, capped at 2000 characters; entities/task_instance/entity.yaml:118-134). job.error_detail exists too (entities/job/entity.yaml:63-65), described as letting "a steward see the reason without reading pod logs." There is still no .../logs route, and pod stderr is not persisted anywhere the API can read. Where pod logs go instead is unverified here. The "Runs screen" consumer named in the body is cut with the UI, and the post-appexchange release is stale.

Definition of done: If it is kept, narrow it to: the tasks route's error_detail is documented in OpenAPI as the failure reason, plus a test that a failed stage's reason reaches it. Persisted log tails become a separate, optional operator ticket.

Dependencies / sequencing: None.

Open product decision: Does the API product ever serve raw pod logs to customers? Logs can carry record values, so this is a PII-boundary question.

Size: about 0.25 engineer-weeks for the narrowed version.

Activity

  1. added
    post-appexchange
    docs-backlog
    post-mvp
    and removed
    post-appexchange
    on Nov 5, 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

    docs-backlogpost-mvp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions