Skip to content

fix: track tasks with fields py-tes doesn't know #409

Closed

Description

@uniqueg

Problem

TesClient.get_task passes a backend's JSON to py-tes's unmarshal, which raises on any key that its models don't know, also in nested objects. TESP (TESP-API with Pulsar) serves author with every task, even as null, so each poll fails: the task goes to UNKNOWN after polling.attempts polls and never reaches its final state, its logs and outputs are never stored, and a cancel leaves it CANCELING. The same goes for any backend that adds a field py-tes doesn't know.

Found in the pre-release review of 0.5.0.

Fix

  • Drop keys unknown to py-tes's models before unmarshal, recursively (task, inputs, outputs, resources, executors, task logs, executor logs, output file logs).
  • Regression test with extra fields at each level.
  • Add a non-standard author field to tests/smoke/fake_tes.py, and check in the smoke test that such a task is tracked to its final state.
  • Docs.

Activity

  1. added this to the v0.5.0 milestone on Nov 4, 2026
  2. added
    priority: high
    status: in progress
    type: bug
    workload: hours
    on Nov 4, 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

    priority: highstatus: in progresstype: bugworkload: hours

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions