Repository navigation
Closed
Description
TESK accepts only TES 1.0 tasks, so it can't run most tasks that current workflow engines send through the TES API: their outputs use wildcards.
What fails
- tesk-api refuses TES 1.1 fields.
spring.jackson.deserialization.fail_on_unknown_properties=trueanswers400 Bad Requesttooutputs[].path_prefix,inputs[].streamableandexecutors[].ignore_error. Clients that send wildcard outputs, such as nf-ga4gh with Nextflow globs (*.bam,*.{html,zip}), needpath_prefix. - The filer expands wildcards only for
file:URLs. Fors3://,http(s)://andftp://outputs,/data/*.bamis taken as a file named*.bam, which doesn't exist, and the output fails. - There is no way to declare an optional output. A declared FILE output that the task doesn't create fails the task. With TES 1.1 wildcards, a pattern that matches nothing is no error, so clients can declare optional outputs as single-file patterns (e.g.
out.tx[*t]). This needs 1 and 2. - The taskmaster mounts a pattern's literal directory. For
/data/*/out.bam, it mounts/data/*, where the executor writes nothing.
Impact
Measured through a TES federation gateway (Conquest) that excludes TES 1.0 endpoints from tasks they can't express:
- nf-core/sarek 3.8.1 (
testprofile): 0 of 23 tasks could go to TESK. - nf-core/methylseq 4.2.0: 1 of 29.
The same tasks run on Funnel, which supports TES 1.1 outputs.
Proposed fix
- tesk-core (feat(filer): upload wildcard output matches tesk-core#134): the filer uploads each match of a pattern with
path_prefixtourlplus its path below the prefix, for every scheme. A pattern that matches nothing succeeds. Symlinks and matches outside the prefix fail the output before anything is uploaded. The taskmaster mounts the pattern's deepest directory without wildcards. Outputs withoutpath_prefixbehave as before, includingfile:globs. - tesk-api (feat: accept the task fields of TES 1.1 tesk-api#133):
- accepts
path_prefix(absolute) and passes it to the taskmaster; - accepts
streamableand ignores it, as TES allows; - accepts
ignore_error: falsebut refusestrue, as TESK stops at the first failed executor; - refuses
backend_parameters_strict: truewith non-emptybackend_parameters; - reports TES 1.1.0 in service info.
- accepts
Verified on a cluster
I built TESK API, taskmaster and filer images from both branches, on top of current dev, and installed them with the chart from TESK dev (Talos, Kubernetes 1.33, local-path PVCs, HTTP outputs to presigned S3 URLs). Then I ran nf-core/sarek 3.8.1 (test, Strelka) with every task routed to TESK:
- 23 of 23 tasks COMPLETE on TESK, including the wildcard outputs (FASTQC, MultiQC, GATK, Strelka) and optional outputs declared as single-file patterns;
- the results match an all-local run: the same 170 files, and identical VCF records. Only the MultiQC reports differ, which embed run details.
Also noticed, not changed
- The chart's
charts/tesk/service-info/service-info.yamlreportstype.version: 1.0and overrides tesk-api's built-in file. It would need the same bump once the API supports 1.1. - With
devfilers (Updating RBAC for PVC #124 in tesk-core), a WDL task that leaves a symlink in its work directory fails the outputs filer:Output .../work is or contains a symbolic link. This is the documented policy; I mention it because miniwdl-based clients hit it.
@uniqueg, would you review? Happy to split or rework if you'd rather land this differently, e.g. in a 1.3.0 instead of 1.2.0.
Metadata
Metadata
Assignees
Labels
No labels
Activity
uniqueg commentedon Nov 13, 2026
Closing as done: the proposed fix is merged on
dev, with docs.path_prefix,streamableandignore_error: false, refusesignore_error: trueand strict backend parameters, and reports TES 1.1.0; documented indocs/api.md.path_prefixfor every scheme, and the taskmaster mounts the pattern's deepest literal directory; documented indocs/filer.md.The chart's own
service-info.yamlstill reports TES 1.0; that bump is tracked in #289, which waits for the tesk-api 1.3.0 release (elixir-cloud-aai/tesk-api#156).