Skip to content

fix: select only executor jobs for a single task #182

Closed

Description

@uniqueg

readTask (used by GET /tasks/{id} and cancel) reads a task's executor jobs with KubernetesClientWrapper.listSingleTaskExecutorJobs, whose label selector is only taskmaster-name=<id>. TaskBuilder.addJob routes every listed job without a job-type label to SingleTaskStrategy.addOutputFilerJob, which sets it unconditionally.

Once elixir-cloud-aai/tesk-core#147 lands, the inputs and outputs filer jobs also carry taskmaster-name=<id>, so they match this selector too. The inputs filer then stands in as the outputs filer until the real one exists. Effects:

  • After an ignored executor failure whose wait timed out, the taskmaster stops before the outputs filer. TaskStateResolver takes the succeeded inputs filer as the outputs filer, and GET /tasks/{id} reports COMPLETE instead of SYSTEM_ERROR. GET /tasks (which matches the outputs filer by name) still says SYSTEM_ERROR.
  • The outputs filer is wrapped twice (once from the label list, once from getSingleTaskOutputFilerJob), so its pods are attached to the wrapper that the state resolver doesn't check.
  • A failed inputs filer gives SYSTEM_ERROR on single reads while the taskmaster still cleans up.

Proposed fix: select taskmaster-name=<id>,job-type=executor in listSingleTaskExecutorJobs (and its test in KubernetesClientWrapperTest, and the integration-test WireMock URL labelSelector=taskmaster-name%3Dtask-123). This works with old and new taskmasters alike, so it can be released and deployed before the tesk-core release that adds the label.

Related: #177, elixir-cloud-aai/tesk-core#147.

Activity

  1. self-assigned this
    on Nov 14, 2026
  2. added
    type: bug
    priority: medium
    status: in progress
    workload: hours
    on Nov 14, 2026
  3. moved this to In progress in ELIXIR On-Cloudon Nov 14, 2026
  4. moved this from In progress to Done in ELIXIR On-Cloudon Nov 14, 2026
  5. removed
    status: in progress
    on Nov 14, 2026
  6. added this to the v2.0.0 milestone on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: mediumtype: bugworkload: hours

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions