Skip to content

Support TES 1.1 wildcard outputs (path_prefix) in tesk-api and the filer #276

Closed

Description

@anuragxxd

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

  1. tesk-api refuses TES 1.1 fields. spring.jackson.deserialization.fail_on_unknown_properties=true answers 400 Bad Request to outputs[].path_prefix, inputs[].streamable and executors[].ignore_error. Clients that send wildcard outputs, such as nf-ga4gh with Nextflow globs (*.bam, *.{html,zip}), need path_prefix.
  2. The filer expands wildcards only for file: URLs. For s3://, http(s):// and ftp:// outputs, /data/*.bam is taken as a file named *.bam, which doesn't exist, and the output fails.
  3. 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.
  4. 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 (test profile): 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_prefix to url plus 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 without path_prefix behave as before, including file: 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 streamable and ignores it, as TES allows;
    • accepts ignore_error: false but refuses true, as TESK stops at the first failed executor;
    • refuses backend_parameters_strict: true with non-empty backend_parameters;
    • reports TES 1.1.0 in service info.

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.yaml reports type.version: 1.0 and overrides tesk-api's built-in file. It would need the same bump once the API supports 1.1.
  • With dev filers (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.

Activity

  1. uniqueg commented on Nov 13, 2026

    @uniqueg
    Member

    Closing as done: the proposed fix is merged on dev, with docs.

    The chart's own service-info.yaml still 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).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions