
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.
10 lines
124 B
Go
10 lines
124 B
Go
package api_impl
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import "time"
|
|
|
|
const (
|
|
fetchJobTimeout = 5 * time.Second
|
|
)
|