[Issue 4553] New - Restart when ready

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 4553] New - Restart when ready

jglick-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=4553
                 Issue #|4553
                 Summary|Restart when ready
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|ENHANCEMENT
                Priority|P3
            Subcomponent|core
             Assigned to|issues@hudson
             Reported by|jglick






------- Additional comments from [hidden email] Fri Sep 25 18:13:14 +0000 2009 -------
Currently /restart will restart Hudson immediately, even if jobs are still running.

In practice I usually /quietDown first, then update whatever plugins are new
etc., then /restart only when all currently running jobs have finished. This
ensures that jobs are not aborted unnecessarily, which can be relevant if you
are trying to match up test failures to changelogs.

But waiting for this to happen can take a couple of hours, so I have to be
careful to stick around watching the dashboard waiting for the executors to
clear. If I get distracted and forget to check for half an hour, that's up to
half an hour of time wasted when the server is idle.

It would be much friendlier if Hudson would just restart itself as soon as it
finished outstanding jobs.

Specific suggestion: if /restart or /exit is invoked,

1. Do the equivalent of /quietDown immediately;

2. Start listening for all executors to be idle, and actually restart or exit
when that happens;

3. Display a response page containing a button to restart or exit immediately.

Should not be hard to implement, though I am not sure about #2; I can't find any
global listener which would be notified on all Executor events (on master as
well as slaves).

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4553] Restart when ready

abayer
https://hudson.dev.java.net/issues/show_bug.cgi?id=4553



User abayer changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|issues@hudson             |abayer
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Thu Oct 29 21:48:29 +0000 2009 -------
Taking issue since I did most of it already anyway. =)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4553] Restart when ready

scm_issue_link
In reply to this post by jglick-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=4553



User scm_issue_link changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |FIXED
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Thu Oct 29 22:02:01 +0000 2009 -------
Code changed in hudson
User: : abayer
Path:
 trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java
 trunk/www/changelog.html
http://fisheye4.cenqua.com/changelog/hudson/?cs=23331
Log:
[FIXED HUDSON-4553] Along with earlier commit, added /safeExit and /safeRestart web endpoints and safe-restart CLI command


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]