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
fix: select only executor jobs for a single task #182
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.
Activity