[ARVADOS] updated: 1.3.0-334-gaaa6a44a7
Git user
git at public.curoverse.com
Thu Feb 14 16:14:19 EST 2019
Summary of changes:
lib/dispatchcloud/scheduler/scheduler.go | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
via aaa6a44a72dcaae6ee08e9c28281f5930126b329 (commit)
from 16589cd93e6780db6a07d7cc110724dea4c19e3e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit aaa6a44a72dcaae6ee08e9c28281f5930126b329
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date: Thu Feb 14 16:13:23 2019 -0500
14807: Wait at least 1 second between retries on initial queue poll.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>
diff --git a/lib/dispatchcloud/scheduler/scheduler.go b/lib/dispatchcloud/scheduler/scheduler.go
index 83fc08a9f..070b2de00 100644
--- a/lib/dispatchcloud/scheduler/scheduler.go
+++ b/lib/dispatchcloud/scheduler/scheduler.go
@@ -75,7 +75,10 @@ func (sch *Scheduler) run() {
// Ensure the queue is fetched once before attempting anything.
for err := sch.queue.Update(); err != nil; err = sch.queue.Update() {
sch.logger.Errorf("error updating queue: %s", err)
- d := sch.queueUpdateInterval / 60
+ d := sch.queueUpdateInterval / 10
+ if d < time.Second {
+ d = time.Second
+ }
sch.logger.Infof("waiting %s before retry", d)
time.Sleep(d)
}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list