diff --git a/engine/api/workflow/process.go b/engine/api/workflow/process.go index 8c642d938b..86d1689d2e 100644 --- a/engine/api/workflow/process.go +++ b/engine/api/workflow/process.go @@ -661,7 +661,7 @@ func checkNodeRunCondition(wr *sdk.WorkflowRun, node sdk.WorkflowNode, params [] } else { luacheck, err := luascript.NewCheck() if err != nil { - log.Warning("processWorkflowNodeRun> WorkflowCheckConditions error: %s", errc) + log.Warning("processWorkflowNodeRun> WorkflowCheckConditions error: %s", err) AddWorkflowRunInfo(wr, true, sdk.SpawnMsg{ ID: sdk.MsgWorkflowError.ID, Args: []interface{}{err.Error()}, diff --git a/engine/worker/cmd_update.go b/engine/worker/cmd_update.go index 7beeec2ecc..7bb49a50f3 100644 --- a/engine/worker/cmd_update.go +++ b/engine/worker/cmd_update.go @@ -37,7 +37,7 @@ func updateCmd(w *currentWorker) func(cmd *cobra.Command, args []string) { sdk.Exit("--api not provided, aborting update.") } w.client = cdsclient.NewWorker(w.apiEndpoint, "download", &http.Client{ - Timeout: time.Second * 10, + Timeout: time.Second * 120, Transport: &httpcontrol.Transport{ TLSClientConfig: &tls.Config{InsecureSkipVerify: FlagBool(cmd, flagInsecure)}, }, diff --git a/engine/worker/init.go b/engine/worker/init.go index 1fe5c02f40..0f350a7c00 100644 --- a/engine/worker/init.go +++ b/engine/worker/init.go @@ -203,7 +203,7 @@ func initFlags(cmd *cobra.Command, w *currentWorker) { w.bookedWJobID = FlagInt64(cmd, flagBookedWorkflowJobID) w.client = cdsclient.NewWorker(w.apiEndpoint, w.status.Name, &http.Client{ - Timeout: time.Second * 10, + Timeout: time.Second * 120, Transport: &httpcontrol.Transport{ TLSClientConfig: &tls.Config{InsecureSkipVerify: FlagBool(cmd, flagInsecure)}, }, diff --git a/sdk/cdsclient/client.go b/sdk/cdsclient/client.go index 7fedcc6190..a0575a30ba 100644 --- a/sdk/cdsclient/client.go +++ b/sdk/cdsclient/client.go @@ -57,7 +57,7 @@ func NewWorker(endpoint string, name string, c HTTPClient) Interface { cli.config = conf if c == nil { - cli.HTTPClient = &http.Client{Timeout: time.Second * 10} + cli.HTTPClient = &http.Client{Timeout: time.Second * 120} } else { cli.HTTPClient = c }