<< Back to previous view

[QB-2841] Running builds unable to start new steps when system is paused
Created: 07/Nov/16  Updated: 13/Jan/17

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: 6.1.29
Fix Version/s: 7.0.0

Type: Bug Priority: Major
Reporter: Justin Georgeson Assigned To: Unassigned
Resolution: Fixed Votes: 1
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
One of the features I was excited to gain in the upgrade from 5.x to 6.x was to be able to pause the system, let the running builds complete, and restart for scheduled maintenance with all the queued builds being restored and run. However I'm seeing running builds are never completing because steps don't start after the system is paused. They instead enter the WAITING state. The docs status that it's only The server won't restart because there are builds in the RUNNING state so it's clearly not trying to persist them across the server restart.

 Comments   
Comment by Robin Shen [ 07/Nov/16 11:28 PM ]
If you just want to restart the system, please do not pause the system. Instead just restart it, upon restart, QB will complete running builds, persist queued builds, and then restart to pick up the persisted queued builds.
Comment by Justin Georgeson [ 07/Nov/16 11:55 PM ]
Jobs scheduled to start between issuing the service restart and the running builds finishing show this in the console.log

    Caused by: com.pmease.quickbuild.QuickbuildException: SYSTEM IS BEING SHUT DOWN NOW: not builds can be requesed

I wanted to pause the system to drain it of running builds with all scheduled builds going into waiting state, so that when I finally issue the restart all those scheduled builds will still be processed.
Comment by Robin Shen [ 08/Nov/16 12:27 AM ]
Hmm... your suggestion is reasonable. Will enhance QB to accept and persist build requests in this time frame
Comment by Justin Georgeson [ 08/Nov/16 12:52 AM ]
Awesome, thanks!
Generated at Thu May 16 13:37:17 UTC 2024 using JIRA 189.