You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pipelineruns.md
+36-1Lines changed: 36 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -951,6 +951,7 @@ spec:
951
951
podTemplate:
952
952
nodeSelector:
953
953
disktype: ssd
954
+
timeout: "1h30m"
954
955
```
955
956
{{% /tab %}}
956
957
@@ -968,12 +969,16 @@ spec:
968
969
taskPodTemplate:
969
970
nodeSelector:
970
971
disktype: ssd
972
+
timeout: "1h30m"
971
973
```
972
974
{{% /tab %}}
973
975
{{< /tabs >}}
974
976
975
977
If used with this `Pipeline`, `build-task` will use the task specific `PodTemplate` (where `nodeSelector` has `disktype` equal to `ssd`)
976
-
along with `securityContext` from the `pipelineRun.spec.podTemplate`.
978
+
along with `securityContext` from the `pipelineRun.spec.podTemplate`. The task will also have a specific timeout of 1 hour and 30 minutes. This overrides any existing timeout already defined by the pipelineTask as well, though the specified `pipelineRun.spec.timeouts.tasks` will still take precedence.
979
+
980
+
For more details on timeout overrides, precedence rules, validation, and practical examples, see [Overriding Individual Task Timeouts](#overriding-individual-task-timeouts) in the failure timeout section.
981
+
977
982
`PipelineTaskRunSpec`may also contain `StepSpecs` and `SidecarSpecs`; see
978
983
[Overriding `Task` `Steps` and `Sidecars`](./taskruns.md#overriding-task-steps-and-sidecars) for more information.
979
984
@@ -1414,6 +1419,36 @@ The global default timeout is set to 60 minutes when you first install Tekton. Y
1414
1419
a different global default timeout value using the `default-timeout-minutes` field in
Copy file name to clipboardExpand all lines: docs/pipelines.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1206,6 +1206,8 @@ format. For example, valid values are `1h30m`, `1h`, `1m`, and `60s`.
1206
1206
For example, if the `PipelineRun` sets `timeouts.pipeline = 1h` and the `Pipeline` sets `tasks[0].timeout = 3h`, the task will still timeout after `1h`.
1207
1207
See [`PipelineRun - Configuring a failure timeout`](pipelineruns.md#configuring-a-failure-timeout) for details.
1208
1208
1209
+
**Note:** Task timeouts specified in the Pipeline can be overridden at runtime using the [`taskRunSpecs`](pipelineruns.md#overriding-individual-task-timeouts) field in the PipelineRun. This provides flexibility to adjust timeouts for specific execution contexts without modifying the Pipeline definition.
1210
+
1209
1211
In the example below, the `build-the-image``Task` is configured to time out after 90 seconds:
0 commit comments