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
The pipeline timeout is not overwritten and the pipeline fails.
Steps to Reproduce the Problem
Create a Pipeline with a task that takes over an hour to complete.
Set the timeout of the task to more than 1 hour (as shown in the "Expected Behavior" section).
Run the Pipeline. Check the created PipelineRun config for the timeout limits
Additional Info
I am running a pipeline with 2 tasks, one of which takes longer than an hour. I have specified the timeout limit for this task. However, when a PipelineRun is created by the Pipeline, the default value of 1 hour is not overwritten. I have followed the documentation on how to set a timeout for a pipeline, which seems to have to be done on the task-level.
In the PipelineRun yaml, created by the Pipeline, both:
Using the following configuration for a PipelineRun does work. In this case the default value of 1 hour is overwritten by 2h40m. However, I would like to not have to create my PipelineRuns manually.
Using the following configuration for a PipelineRun does work. In this case the default value of 1 hour is overwritten by 2h40m. However, I would like to not have to create my PipelineRuns manually.
How is the PipelineRun created in your setup ? Asking this because, it is most likely, on the "thing" that creates the PipelineRun to set the timeouts correctly.
Tekton Pipeline version: tekton.dev/v1beta1
v1beta1 is the API version, we also need the pipeline instance version (tkn version should display this)
The PipelineRun where the timeout value is correct is created with a Cronjob and EventListener. A PipelineRun created by a Pipeline does not seem to set the timeout value correctly.
I hope that answers your question regarding how the PipelineRun is created.
Edit: To add to the first answer: I use the OpenShift UI to start a PipelineRun, which I assume runs something similar to tkn pipeline start pipeline-name
MarijnJV
changed the title
Overwriting Pipeline timeout does not work
Overriding Pipeline timeout does not work
Jul 15, 2024
Expected Behavior
A PipelineRun, created by a Pipeline should not timeout after 1 hour, but rather after 2h30m.
I used the following configuration:
Actual Behavior
A PipelineRun, created by a Pipeline runs out after 1 hour:
PipelineRun "pipeline-name-id" failed to finish within "1h0m0s"
The PipelineRun yaml configuration contains the following:
The pipeline timeout is not overwritten and the pipeline fails.
Steps to Reproduce the Problem
Additional Info
I am running a pipeline with 2 tasks, one of which takes longer than an hour. I have specified the timeout limit for this task. However, when a PipelineRun is created by the Pipeline, the default value of 1 hour is not overwritten. I have followed the documentation on how to set a timeout for a pipeline, which seems to have to be done on the task-level.
In the PipelineRun yaml, created by the Pipeline, both:
and
are present. Because the pipeline timeout is shorter than the task timeout, the pipeline will fail after an hour.
I have also tried to set the default timeout value to 2 hours via a ConfigMap. This did not work either:
This still resulted in a 1 hour timeout limit.
PipelineRun
Using the following configuration for a PipelineRun does work. In this case the default value of 1 hour is overwritten by 2h40m. However, I would like to not have to create my PipelineRuns manually.
Kubernetes version: v1.27.10+28ed2d7 (OpenShift 4.4)
Output of
kubectl version
:The text was updated successfully, but these errors were encountered: