Worker: only call may-I-keep-running endpoint every 10 seconds

For debugging it was nice to have this called every second, but for
production use that's a bit too frequent.
This commit is contained in:
Sybren A. Stüvel 2022-05-20 12:57:27 +02:00
parent 0a3009d6ed
commit d9a955beee

View File

@ -20,7 +20,7 @@ const (
durationFetchFailed = 10 * time.Second // ... if fetching failed somehow.
durationTaskComplete = 2 * time.Second // ... when a task was completed.
mayKeepRunningPeriod = 1 * time.Second
mayKeepRunningPeriod = 10 * time.Second
)
// Implement error interface for `api.MayKeepRunning` to indicate a task run was