Skip to content

Commit

Permalink
fix(worker): timeout 120 send result (#4441)
Browse files Browse the repository at this point in the history
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
  • Loading branch information
yesnault authored and sguiheux committed Jul 9, 2019
1 parent 91749ff commit 7da7109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/worker/take_workflow_node_run_job.go
Expand Up @@ -118,7 +118,7 @@ func (w *currentWorker) takeWorkflowJob(ctx context.Context, job sdk.WorkflowNod
var lasterr error
for try := 1; try <= 10; try++ {
log.Info("takeWorkflowJob> Sending build result...")
ctxSendResult, cancelSendResult := context.WithTimeout(ctx, 5*time.Second)
ctxSendResult, cancelSendResult := context.WithTimeout(ctx, 120*time.Second)
lasterr = w.client.QueueSendResult(ctxSendResult, job.ID, res)
if lasterr == nil {
log.Info("takeWorkflowJob> Send build result OK")
Expand Down

0 comments on commit 7da7109

Please sign in to comment.