Repository navigation
Description
Why?
A gateway (proTES, later proWES) forwards each task to a backend and may try several. Users should see where their task ended up and why, and get clear messages when routing fails. Upcoming proTES versions record the routing chain as server-written tags under a reserved prefix (gateway. by default), the same for TES and WES; the non-compliant tesTaskLog.metadata.forwarded_to is deprecated for one release and then dropped. Clients may set exactly two keys under that prefix, gateway.pipeline and gateway.backends (#49); gateways reject every other client gateway.* tag with 400, which matters for re-runs.
How?
- Task details: show the gateway tags from
GET /tasks/{id}?view=BASIC|FULL(TES) or the run log'srequest.tags(WES):gateway.backend(URL of the backend that accepted the task, or whose outcome is unknown),gateway.backend_task_id,gateway.forwarded_at,gateway.attempts;gateway.route: a compact JSON array of attempts (url,outcome,reason), possibly truncated (gateway.route_truncated); render it as a list, tolerate malformed JSON;gateway.pipeline_source,gateway.plugins, and a link togateway.provenance(GET …/tasks/{id}/provenance, owner and admins).
Show the backend's name from the registry list where the URL matches. Hide thegateway.*keys from the plain tag list. Don't readforwarded_to.
- Errors on create:
503after the gateway's total forward timeout: "no backend accepted the task in time"; nothing was started, the user may retry.400with the reserved-tag problem type: show thedetail.
- Outcome unknown: a task in
SYSTEM_ERRORwhose last attempt has outcomeunknown(5xx or timeout after sending) may still run at that backend. Explain this instead of offering a blind resubmit. - Re-runs: "run again" from a fetched task must strip all
gateway.*tags exceptgateway.pipelineandgateway.backendsbefore resubmitting; otherwise the gateway answers400.
Open question: where does "run again" live: in Krini or in the TES Cloud Component (@elixir-cloud/tes)? If it is in the component, the stripping belongs in a cloud-components issue (linked here), and this issue only checks that it works in Krini. To be decided with the Krini and Cloud Components developers before point 4 is implemented.
Acceptance criteria
- For a task forwarded by a gateway, the details show the backend and the attempts in order.
- Re-running a gateway task succeeds (no
400for reserved tags). -
503and outcome-unknown cases show clear messages.
Dependencies: #41; proTES with the plugin engine and gateway tags (elixir-cloud-aai/protes#194 as re-scoped: feat!: run task plugins with FOCA). Blocked until those tags are released.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNice to have
Activity