Add the ability to override the timeout
value for individual pipeline tasks via taskRunSpecs in a pipelineRun
#7752
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
Feature request
Provide the ability to override the
timeout
value for individual pipeline tasks via taskRunSpecs in a pipelineRun. Alternatively, allow parameter interpolation intimeout
fields, so timeouts can be overriden via parameters.Use case
Consider the following pipeline, which is stored remotely and consumed by the pipelineRuns also noted below.
If it's a weekday, it is fine to consume the daily-routine as is and work eight hours, decompress eight hours, and sleep for eight hours. If it's a weekday, we also need to make sure we do not perform any of these tasks for more than 8 hours; hence, the timeout value is set for each task.
On the weekend, we only want to work for one hour, decompress for 14, and sleep for nine; however, our decompress and sleep tasks are going to timeout after eight hours, and there is no way to override the task timeout values in the remote pipeline.
We could remove the timeout values for tasks, but then the global task timeout value of 60 minutes will kick-in. We could also set the timeout for all tasks to 0 to disable the timeout, and use
timeouts
for the pipelineRun to control the timeout for all tasks, but that does not solve the problem of being able to override individual task timeouts.Possible solution:
The text was updated successfully, but these errors were encountered: