Set PipelineRun Tasks to inherit their timeout from their PipelineRun's spec.timeouts.pipeline
#8539
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
Feature request
Based on the Pipelines docs it appears that previously a Task would inherit its timeout from
pipelinerun.spec.timeout
if unspecified. That field is now deprecated, and its new functional equivalent ispipelinerun.spec.timeouts.pipeline
. I propose that a Pipeline's Task's default timeout still be the (functional) Pipeline timeout, instead of defaulting to the TektonConfigdefault-timeout-minutes
. I believe this is an intuitive expectation of the default value. This of course does not offer any net-new functionality but improves the ergonomics of the user.Use case
Example of potential perceived regression
spec.timeout
is deprecated and updates their spec:spec.pipelineSpec.tasks[0]
now uses the default timeout minutes60m
, causing it to timeout where it did not beforeGeneral use-case, ergonomics
When a pipeline takes longer than the default timeout due to one or more of the tasks taking longer than the tiemout, an intuitive solution would be to simply raise the PipelineRun's
timeouts.pipeline
and/ortimeouts.tasks
. However this will not have the desired effect as the long-running tasks will still keep the default timeout.The text was updated successfully, but these errors were encountered: