8000 fix(hatchery): queue polling frequency (#3426) · ovh/cds@357e435 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 357e435

Browse files
fsaminyesnault
authored andcommitted
fix(hatchery): queue polling frequency (#3426)
1 parent 064bcc9 commit 357e435

File tree

1 changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/hatchery/hatchery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func Create(h Interface) error {
105105

106106
sdk.GoRoutine("queuePolling",
107107
func() {
108-
if err := h.CDSClient().QueuePolling(ctx, wjobs, pbjobs, errs, 2*time.Minute, h.Configuration().Provision.GraceTimeQueued, h.ModelType(), h.Hatchery().RatioService, nil); err != nil {
108+
if err := h.CDSClient().QueuePolling(ctx, wjobs, pbjobs, errs, 20*time.Second, h.Configuration().Provision.GraceTimeQueued, h.ModelType(), h.Hatchery().RatioService, nil); err != nil {
109109
log.Error("Queues polling stopped: %v", err)
110110
cancel()
111111
}

0 commit comments

Comments
 (0)
0