Skip to content

Commit

Permalink
fix(hatchery): queue polling frequency (#3426)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsamin authored and yesnault committed Oct 9, 2018
1 parent 064bcc9 commit 357e435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/hatchery/hatchery.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func Create(h Interface) error {

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

0 comments on commit 357e435

Please sign in to comment.