History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-2841
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Justin Georgeson
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Running builds unable to start new steps when system is paused

Created: 07/Nov/16 02:31 PM   Updated: 13/Jan/17 02:02 PM
Component/s: None
Affects Version/s: 6.1.29
Fix Version/s: 7.0.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
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.

 All   Comments   Work Log   Change History      Sort Order:
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.

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.

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

Justin Georgeson [08/Nov/16 12:52 AM]
Awesome, thanks!