Worker: be a bit faster in requesting a new task

This commit is contained in:
Sybren A. Stüvel 2022-03-17 13:07:48 +01:00
parent 8d52a03648
commit 1bcf4139bf

View File

@ -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.
) )