Refactor job status handling to prevent race conditions #4

Merged
s1d3sw1ped merged 1 commits from fix-race into master 2026-01-02 18:25:17 -06:00
Owner

#2

  • Removed redundant error handling in handleListJobTasks.
  • Introduced per-job mutexes in Manager to serialize updateJobStatusFromTasks calls, ensuring thread safety during concurrent task completions.
  • Added methods to manage job status update mutexes, including creation and cleanup after job completion or failure.
  • Improved error handling in handleGetJobStatusForRunner by consolidating error checks.
#2 - Removed redundant error handling in handleListJobTasks. - Introduced per-job mutexes in Manager to serialize updateJobStatusFromTasks calls, ensuring thread safety during concurrent task completions. - Added methods to manage job status update mutexes, including creation and cleanup after job completion or failure. - Improved error handling in handleGetJobStatusForRunner by consolidating error checks.
s1d3sw1ped added 1 commit 2026-01-02 18:24:26 -06:00
Refactor job status handling to prevent race conditions
All checks were successful
PR Check / check-and-test (pull_request) Successful in 26s
b51b96a618
- Removed redundant error handling in handleListJobTasks.
- Introduced per-job mutexes in Manager to serialize updateJobStatusFromTasks calls, ensuring thread safety during concurrent task completions.
- Added methods to manage job status update mutexes, including creation and cleanup after job completion or failure.
- Improved error handling in handleGetJobStatusForRunner by consolidating error checks.
s1d3sw1ped merged commit 1a8836e6aa into master 2026-01-02 18:25:17 -06:00
s1d3sw1ped deleted branch fix-race 2026-01-02 18:25:17 -06:00
Sign in to join this conversation.
No description provided.