-
Type:
Suggestion
-
Resolution: Done
-
Component/s: Build Queues
-
None
Issue Summary
We can follow the below steps to modify bamboo.agent.heartbeatInterval and bamboo.agent.heartbeatTimeoutSeconds https://confluence.atlassian.com/bamboo/changing-the-remote-agent-heartbeat-interval-289277412.html
reactionDelay = heartbeatTimeoutSeconds + 2 * heartbeatInterval; jobDetail.getJobDataMap().put(OrphanedBuildMonitorJob.MAP_KEY_REACTION_DELAY, reactionDelay);
By this way it forces us to make changes to the Agent heartbeat detection which may not be directly linked to the the OrphanBuildMonitor job. This leave us with a hard decision to whether allow longer Build result jobs to exist or reduce the probability of detecting a hanging agent.
These two properties are the only ones affecting OrphanedBuildMonitorJob, since its primary functions are to detect issues with jobs affected by malfunctioning agents - jobs getting picked from queue by agent but agent not reporting starting work on it as well as communication issues between agent and Bamboo during build result processing.
The only way we would see this being changed is by adding another parameter that would replace the constant 2 in reactionDelay calculation, but restrict it to some reasonable boundaries like 2-10 to not let customers break it by accident.
reactionDelay = timeout + newConst * interval
So instead of making this a static value of 2, may be a variable can be called and this value can be set from 2-10
Steps to Reproduce
None
Expected Results
None
Actual Results
None
Workaround
None