Sybren A. Stüvel 9bda21648e Manager: add timeout when fetching job
Add a timeout when fetching a job from the persistence layers.

It's my intention to add more timeouts, so this also introduces some code
to make it easier to test that a context has a deadline set.
2022-12-14 13:02:59 +01:00

10 lines
124 B
Go

package api_impl
// SPDX-License-Identifier: GPL-3.0-or-later
import "time"
const (
fetchJobTimeout = 5 * time.Second
)