Repository navigation
Description
Why?
Priority note: the M4.4 wording ("run workflows … and individual containerised tasks") is technically met by Conquest on its own backend (#27). But federated workflow execution on the TES network is central to what ELIXIR On-Cloud demonstrates, so this is required in spirit: priority: medium.
M4.4 is about running workflows on the federated ELIXIR On-Cloud TES network. Currently Conquest dispatches every workflow task to its internal TES API, which turns tasks into Kubernetes Jobs in Conquest's own cluster. That is acceptable for the first deployment (#27) only. Conquest must transition to sending tasks to the proTES gateway, which then distributes them across the TES network (CZ, DE, FI, GR, NL planned). Only then do WES runs via Krini demonstrate federated execution end to end.
Upstream: https://github.com/anuragxxd/conquest (contact @anuragxxd).
What the code suggests:
internal/backend/interfaces.godefines aTaskBackendinterface (Submit,Cancel,Refresh). It is explicitly designed so that the Kubernetes backend (internal/backend/k8s) is only the first implementation. A TES-forwarding backend fits here: engines keep talking to Conquest's internal TES API (thenf-ga4ghplugin,python/miniwdl_conquest_tes,python/snakemake_executor_plugin_conquest_tes), and the new backend relays to proTES.- Data staging is the hard part. Today, init and post containers stage inputs from and outputs to S3 inside the cluster (
internal/filer). Shared-filesystem workspace modes (pvc,objectfs) cannot work across remote Nodes. Task inputs are validated ass3://,http(s)://or, for PVC runs, shared local paths (isSupportedTaskInputURLininternal/api/tes/handlers.go). - Auth: calls to proTES must carry the user's LS Login token, or a service credential, according to the decision in proTES: validate LS Login bearer tokens and define how downstream TES credentials are handled protes#201.
How?
- Write a short design note in this issue before coding. It should cover:
- how tasks are translated, mainly inputs and outputs: rewrite
s3://to presignedhttps://URLs, or require S3 access on all Nodes; - which workspace modes are supported (likely
emptydironly); - which engines and versions are supported (Snakemake 7.x runs locally in the runner pod and is out of scope);
- how state and logs are mapped back from proTES
GetTask; - cancellation;
- auth/token propagation, including expiry during long workflows.
- how tasks are translated, mainly inputs and outputs: rewrite
- Implement a
TaskBackendthat submits to a configurable external TES URL (proTES), polls state inRefresh, and cancels viaCancelTask. Make it selectable via config so the Kubernetes backend remains the default until this works. - Test against proTES with at least two TES Nodes for each of Nextflow, WDL and Snakemake ≥ 8.
- Switch the ELIXIR On-Cloud deployment (Deploy Conquest (WES) for ELIXIR On-Cloud #27) to the proTES backend.
- Open the upstream issue or PR and link it here.
Acceptance criteria
- A design note is agreed in this issue.
- With the proTES backend enabled, example workflows for each supported engine complete, with tasks visibly executed on TES network Nodes (proTES logs and task records).
- The production Conquest deployment uses proTES.
Dependencies: #27 (deployment), elixir-cloud-aai/protes#201 (proTES auth decision).
Part of the ELIXIR Compute Platform WP4 sprint (M&Ds due end of December 2026).
If you want to work on this issue:
- Assign yourself (if someone is already assigned, ask them first or pick another one)
- Move the issue to "In progress" on the project board
- Start working 🚀
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
2 remaining items
uniqueg commentedon Dec 1, 2026
All three acceptance criteria are met. Closing.
1. Design (agreed; digest)
RoutingBackendbehind the existingTaskBackendinterface (Submit,RefreshpollsGetTask,CancelcallsCancelTask), switched on by config (federation.enabled/CONQUEST_FEDERATION_CONFIG); without it every task runs locally as before. Engines don't change: they still talk to Conquest's internal TES API, and Conquest decides per task. Upstream: feat(federation): route tasks to remote GA4GH TES endpoints, per task anuragxxd/conquest#43 (routing), feat: storage gateway for remote TES endpoints, and WDL over S3 anuragxxd/conquest#44 (storage gateway, WDL over S3), feat: dispatch TES tasks asynchronously anuragxxd/conquest#51 (asynchronous dispatch). Docs: README, "Federation: Remote TES Endpoints".emptydirmode; tasks of shared-workspace runs (pvc,objectfs) always stay local.s3_url_style: gateway, a forwarded task'ss3://inputs and outputs become capability URLs on Conquest (/storage/v1/t/<task>/<HMAC>/...). Each request gets a307to an S3 URL presigned at that moment, so a task waiting in a remote queue can't hit an expired URL. Each URL allows only what the task's stored request names, stays inside its run's root, and stops working shortly after the task ends.on_behalf_of_header, sent only for owners at exactlyon_behalf_of_issuer; Conquest: name the run owner in tasks sent to proTES #189, feat: name the run owner to remote endpoints conquest#14). proTES then records the user for attribution only (feat: pass submitter identity to TES backends protes#540). Ownership stays with Conquest's client until per-backend token exchange (feat: exchange user tokens per TES backend protes#501).EOC-Compute(Conquest: validate LS Login bearer tokens on the WES API #18; feat: record run owners conquest#2, JupyterHub: User Guide for Accessing JupyterHub Instances on ELIXIR Node #4, JupyterHub Developing a UseCase: Variant Calling Workflow for Large-Scale Genomic Datasets #5). Runner callbacks are authenticated (fix: authenticate runner callbacks conquest#7)./internaland the probes. Only/ga4gh/wes/v1and the gateway path/storage/v1/tare routed.no_local_fallback. If proTES refuses a task, the dispatcher retries it for about 15 minutes and then ends itSYSTEM_ERROR. If proTES may already have created the task, it fails at once rather than running twice. A task never falls back to the local cluster.obcprovisioner) and run retention (Conquest: run-bucket provisioner withshareddefault #154-Conquest: delete run data after a retention period #157; feat: add run-bucket provisioners conquest#9-Front-End: Static Variant Evolution #12).2. Evidence
COMPLETE. Across the SDK and Krini runs, proTES sent the 18 workflow tasks to all four Node TES: FI TESK 3, CZ TESK 6, FI Poiesis 2, CZ Poiesis 7.2eb30ed) sends every task to https://gateway-tes.elixir-on.cloud, with no local fallback and no client hints.3. Known limits and follow-ups
2eb30edpredates feat: add run-bucket provisioners conquest#9-Front-End: On-Demand User-specified Variant Deconvolution #15. Live runner pods therefore still hold the bucket-wide S3 keys, under the demo conditions accepted for Conquest: keep S3 credentials out of runner pods #149 (onlyEOC-Computemembers submit, public or synthetic data only). The next Conquest upgrade at CERIT brings run retention (720h) and the owner header, and makes per-run buckets available.