[JIRA] Created: (HUDSON-8405) Optionally pause/cancel lower priority jobs in favor of higher priority jobs in the queue

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

[JIRA] Created: (HUDSON-8405) Optionally pause/cancel lower priority jobs in favor of higher priority jobs in the queue

Kohsuke Kawaguchi
Administrator
Optionally pause/cancel lower priority jobs in favor of higher priority jobs in the queue
-----------------------------------------------------------------------------------------

                 Key: HUDSON-8405
                 URL: http://issues.hudson-ci.org/browse/HUDSON-8405
             Project: Hudson
          Issue Type: New Feature
          Components: prioritysorter
            Reporter: dbr
            Assignee: bklarson


Currently the priority sorter plugin does a great job of sorting jobs in the queue. However, if a low priority job is started, and then later a higher priority job enters the queue, the higher priority job still has to wait for the lower priority one.

Is there a chance the plugin could be extended to do something in that situation?

One option would be to cancel the low prio job (I guess that is technically possible, since it is possible manually). There could be an option to let the low prio job if its estimated remaining time is less than N minutes. This would still guarantee high prio jobs do not wait long.

Another option would be to pause the low prio job instead of cancelling it. I don't know if that's harder technically (I'm thinking about kill -CONT on unix, don't know about other platforms). Another thing to consider is that the job would then stay in memory; however it could still be swapped out, and that might be cheaper than to restart the job later.

Any comments or ideas welcome.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[JIRA] Updated: (HUDSON-8405) Optionally pause/cancel lower priority jobs in favor of higher priority jobs in the queue

Kohsuke Kawaguchi
Administrator

     [ http://issues.hudson-ci.org/browse/HUDSON-8405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

bklarson updated HUDSON-8405:
-----------------------------

    Priority: Minor  (was: Major)

Changing to Minor to match HUDSON-4683

> Optionally pause/cancel lower priority jobs in favor of higher priority jobs in the queue
> -----------------------------------------------------------------------------------------
>
>                 Key: HUDSON-8405
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-8405
>             Project: Hudson
>          Issue Type: New Feature
>          Components: prioritysorter
>            Reporter: dbr
>            Assignee: bklarson
>            Priority: Minor
>
> Currently the priority sorter plugin does a great job of sorting jobs in the queue. However, if a low priority job is started, and then later a higher priority job enters the queue, the higher priority job still has to wait for the lower priority one.
> Is there a chance the plugin could be extended to do something in that situation?
> One option would be to cancel the low prio job (I guess that is technically possible, since it is possible manually). There could be an option to let the low prio job if its estimated remaining time is less than N minutes. This would still guarantee high prio jobs do not wait long.
> Another option would be to pause the low prio job instead of cancelling it. I don't know if that's harder technically (I'm thinking about kill -CONT on unix, don't know about other platforms). Another thing to consider is that the job would then stay in memory; however it could still be swapped out, and that might be cheaper than to restart the job later.
> Any comments or ideas welcome.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira