{"record":{"id":"59ff1ee104e9857c","repo":"kubernetes/kops","slug":"deadline-exceeded-executing-task-v-example-error","errorCode":null,"errorMessage":"deadline exceeded executing task %v. Example error: %v","messagePattern":"deadline exceeded executing task (.+?)\\. Example error: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/executor.go","lineNumber":107,"sourceCode":"\t\tvar canRun []*taskState[T]\n\t\tdoneCount := 0\n\t\tfor _, ts := range taskStates {\n\t\t\tif ts.done {\n\t\t\t\tdoneCount++\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tready := true\n\t\t\tfor _, dep := range ts.dependencies {\n\t\t\t\tif !dep.done {\n\t\t\t\t\tready = false\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ready {\n\t\t\t\tif ts.deadline.IsZero() {\n\t\t\t\t\tts.deadline = time.Now().Add(e.options.MaxTaskDuration)\n\t\t\t\t} else if time.Now().After(ts.deadline) {\n\t\t\t\t\treturn fmt.Errorf(\"deadline exceeded executing task %v. Example error: %v\", ts.key, ts.lastError)\n\t\t\t\t}\n\t\t\t\tcanRun = append(canRun, ts)\n\t\t\t}\n\t\t}\n\n\t\tklog.Infof(\"Tasks: %d done / %d total; %d can run\", doneCount, len(taskStates), len(canRun))\n\t\tif len(canRun) == 0 {\n\t\t\tbreak\n\t\t}\n\n\t\tprogress := false\n\n\t\tvar tasks []*taskState[T]\n\t\ttasks = append(tasks, canRun...)\n\n\t\ttaskErrors := e.forkJoin(ctx, tasks)\n\t\tvar errs []error\n\t\tfor i, err := range taskErrors {","sourceCodeStart":89,"sourceCodeEnd":125,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/executor.go#L89-L125","documentation":"Thrown by the task executor when a task that previously failed has retried past its deadline (MaxTaskDuration since it first became runnable). The message names the task key and includes the last underlying error as an example, so the real cause is the repeated lastError — typically a cloud API that keeps failing (rate limits, credential issues, eventual consistency).","triggerScenarios":"Thrown at upup/pkg/fi/executor.go:107 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the \"Example error\" in the message — it carries the actual recurring failure to fix","For throttling/consistency errors, increase the task timeout so retries can succeed","Check credentials, quotas and network reachability of the cloud API for the named task","If the deadline is too aggressive for large clusters, tune the executor's MaxTaskDuration option"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}