Skip to content

perf: list only the page's outputs filer jobs #177

Closed

Description

@uniqueg

listTasks reads all filer jobs in the namespace (KubernetesClientWrapper.listAllFilerJobs, label selector !job-type), unpaginated, on every GET /tasks that matches at least one task, in any view. Since #160, each finished outputs filer job can carry up to about 200 KB of output file logs. In a namespace with thousands of finished tasks with many output files, each list request then transfers and deserialises hundreds of MB.

Proposal: once filer jobs carry taskmaster-name (elixir-cloud-aai/tesk-core#147), select only the outputs filer jobs of the matched taskmasters: taskmaster-name in (<ids>), in batches if the selector gets long. Keep the old listing as a fallback for jobs without the label (tasks started by older taskmasters).

docs/api.md ("Output file logs") documents the cost until then.

Activity

  1. added
    type: feature
    priority: low
    status: blocked
    workload: hours
    on Nov 14, 2026
  2. moved this to Backlog in ELIXIR On-Cloudon Nov 14, 2026
  3. uniqueg commented on Nov 14, 2026

    @uniqueg
    MemberAuthor

    Note for the implementation: from tesk-core#147 (PR tesk-core#155) on, the taskmaster puts the taskmaster-name label on filer jobs. Filer jobs created by older taskmasters don't have it. When this issue switches the outputs filer lookup to a label selector, it must still find those older, unlabelled filer jobs (for example with the current name-based lookup as a fallback), so tasks that started before the upgrade keep their state.

  4. added
    status: triage
    status: in progress
    and removed
    status: blocked
    on Nov 15, 2026
  5. self-assigned this
    on Nov 16, 2026
  6. removed
    status: triage
    on Nov 16, 2026
  7. moved this from Backlog to In progress in ELIXIR On-Cloudon Nov 16, 2026
  8. moved this from In progress to In review in ELIXIR On-Cloudon Nov 16, 2026
  9. moved this from In review to Done in ELIXIR On-Cloudon Nov 16, 2026
  10. removed
    status: in progress
    on Nov 16, 2026
  11. added this to the v2.0.0 milestone on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: lowtype: featureworkload: hours

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions