You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Models/Queue.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -254,8 +254,8 @@ export class Queue {
254
254
consttimeoutUpperBound=(queueLifespanRemaining-500>0) ? queueLifespanRemaining-499 : 0;// Only get jobs with timeout at least 500ms < queueLifespanRemaining.
255
255
256
256
constinitialQuery=(queueLifespanRemaining)
257
-
? 'active == FALSE AND failed == null AND timeout > 0 AND timeout < '+timeoutUpperBound
258
-
: 'active == FALSE AND failed == null';
257
+
? '(active == FALSE AND failed == null AND timeout > 0 AND timeout < '+timeoutUpperBound+') OR (active == FALSE AND failed == null AND timeout > 0 AND timeout < '+timeoutUpperBound+')'
258
+
: '(active == FALSE AND failed == null) OR (active == TRUE && failed == null)';
? 'name == "'+nextJob.name+'" AND active == FALSE AND failed == null AND timeout > 0 AND timeout < '+timeoutUpperBound
275
-
: 'name == "'+nextJob.name+'" AND active == FALSE AND failed == null';
274
+
? '(name == "'+nextJob.name+'" AND active == FALSE AND failed == null AND timeout > 0 AND timeout < '+timeoutUpperBound+') OR (name == "'+nextJob.name+'" AND active == FALSE AND failed == null AND timeout > 0 AND timeout < '+timeoutUpperBound+')'
275
+
: '(name == "'+nextJob.name+'" AND active == FALSE AND failed == null) OR (name == "'+nextJob.name+'" AND active == TRUE AND failed == null)';
0 commit comments