You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: track tasks with fields py-tes doesn't know #409
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.
Activity