mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-20 07:22:32 +00:00
[FIXED HUDSON-2633] Set minimum of 10 minutes before showing "appears to be stuck"
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14661 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
07e40ca911
commit
5739219b7e
1 file changed
+1
-1
@@ -942,7 +942,7 @@ public class Queue extends ResourceController implements Saveable {
|
||||
long elapsed = System.currentTimeMillis()-buildableStartMilliseconds;
|
||||
if(d>=0) {
|
||||
// if we were running elsewhere, we would have done this build ten times.
|
||||
return elapsed > d*10;
|
||||
return elapsed > Math.max(d,60000L)*10;
|
||||
} else {
|
||||
// more than a day in the queue
|
||||
return TimeUnit2.MILLISECONDS.toHours(elapsed)>24;
|
||||
|
||||
Reference in new issue
Block a user