From 3a812a61e587bae7c318bee530b435c115a6263f Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Tue, 19 Sep 2023 21:54:24 +0200 Subject: [PATCH] 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 --- bundle/run/job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/run/job.go b/bundle/run/job.go index 319cd146..b94e8fef 100644 --- a/bundle/run/job.go +++ b/bundle/run/job.go @@ -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