Increase timeout waiting for job run to 1 day (#786)

## Changes

It's not uncommon for job runs to take more than 2 hours. On the client
side, we should not stop waiting for a job to complete if it is
intentionally running for a long time. If a job isn't supposed to run
this long, the user can specify a run timeout in the job specification
itself.

## Tests

n/a
This commit is contained in:
Pieter Noordhuis 2023-09-19 21:54:24 +02:00 committed by GitHub
parent 43e2eefc27
commit 3a812a61e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ func (o *JobOptions) toPayload(jobID int64) (*jobs.RunNow, error) {
}
// Default timeout for waiting for a job run to complete.
var jobRunTimeout time.Duration = 2 * time.Hour
var jobRunTimeout time.Duration = 24 * time.Hour
type jobRunner struct {
key