Please sign in to comment.
Check if agent is disabled before job assignment
* Fix for #3747 * BuildAssignmentService#assignWorkToAgent has a check to verify if an agent is disabled. The actual assignment happens in a synchronized block, by the time a thread enters the block the agent could be disabled. This commit ensures that an agent is not disabled within the synchronized block. * Disabled agents are refreshed now, this ensures if a disabled agent is running a job and loses contact the job can be reschuduled.
- Loading branch information...
Showing with 11 additions and 4 deletions.