Worker: be a bit faster in requesting a new task
This commit is contained in:
parent
8d52a03648
commit
1bcf4139bf
@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// How long to wait to fetch another task...
|
// How long to wait to fetch another task...
|
||||||
durationNoTask = 5 * time.Second // ... if there is no task now.
|
durationNoTask = 2 * time.Second // ... if there is no task now.
|
||||||
durationFetchFailed = 10 * time.Second // ... if fetching failed somehow.
|
durationFetchFailed = 10 * time.Second // ... if fetching failed somehow.
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user