You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf: list only the page's outputs filer jobs #177
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.
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.
Activity
uniqueg commentedon Nov 14, 2026
Note for the implementation: from tesk-core#147 (PR tesk-core#155) on, the taskmaster puts the
taskmaster-namelabel 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.