[backend/queue] Check for correct heartbeat interval
This commit is contained in:
parent
a4ae25d5f3
commit
c235f1a586
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ public class PostgresJobQueue<T>(
|
|||
p.WorkerId != null &&
|
||||
!db.Workers.Any(w => w.Id == p.WorkerId &&
|
||||
w.Heartbeat >
|
||||
DateTime.UtcNow - TimeSpan.FromSeconds(60)))),
|
||||
DateTime.UtcNow - TimeSpan.FromSeconds(45)))),
|
||||
token);
|
||||
|
||||
var actualParallelism = Math.Min(parallelism - runningCount, queuedCount);
|
||||
|
|
Loading…
Add table
Reference in a new issue