-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is no way to override default TaskRun timeout with "don't timeout at all" #978
Comments
Starting in Tekton Pipelines v0.4.0, the default timeout for `TaskRun`s of 10 minutes when no timeout is specified is actually enforced. The only way to specify a timeout for a `TaskRun` is by setting a timeout on the `PipelineRun`, so until tektoncd/pipeline#978 and/or tektoncd/pipeline#979 are addressed, we should just set a ridiculously high timeout on all `PipelineRun`s. Signed-off-by: Andrew Bayer <[email protected]>
Starting in Tekton Pipelines v0.4.0, the default timeout for `TaskRun`s of 10 minutes when no timeout is specified is actually enforced. The only way to specify a timeout for a `TaskRun` is by setting a timeout on the `PipelineRun`, so until tektoncd/pipeline#978 and/or tektoncd/pipeline#979 are addressed, we should just set a ridiculously high timeout on all `PipelineRun`s. Signed-off-by: Andrew Bayer <[email protected]>
Maybe a timeout setting of 0 to indicate no timeout? |
That sounds perfect to me, yeah. |
/assign @houshengbo |
…neRun to 240 hours (#4251) * fix(tekton): Set a default PipelineRun timeout of 10 days Starting in Tekton Pipelines v0.4.0, the default timeout for `TaskRun`s of 10 minutes when no timeout is specified is actually enforced. The only way to specify a timeout for a `TaskRun` is by setting a timeout on the `PipelineRun`, so until tektoncd/pipeline#978 and/or tektoncd/pipeline#979 are addressed, we should just set a ridiculously high timeout on all `PipelineRun`s. Signed-off-by: Andrew Bayer <[email protected]> * fix(tekton): Allow configuring Pipeline timeout Signed-off-by: Andrew Bayer <[email protected]>
@bobcatfish |
We are able to set the timeout to the value 0, and we can also set the timeout to nil. |
Perfect! |
…neRun to 240 hours (jenkins-x#4251) * fix(tekton): Set a default PipelineRun timeout of 10 days Starting in Tekton Pipelines v0.4.0, the default timeout for `TaskRun`s of 10 minutes when no timeout is specified is actually enforced. The only way to specify a timeout for a `TaskRun` is by setting a timeout on the `PipelineRun`, so until tektoncd/pipeline#978 and/or tektoncd/pipeline#979 are addressed, we should just set a ridiculously high timeout on all `PipelineRun`s. Signed-off-by: Andrew Bayer <[email protected]> * fix(tekton): Allow configuring Pipeline timeout Signed-off-by: Andrew Bayer <[email protected]>
Expected Behavior
There should be a way to say "don't ever timeout this
TaskRun
".Actual Behavior
There isn't. If no timeout is specified on the
PipelineRun
, theTaskRun.Spec.Timeout
is set tonil
, and if that'snil
, then the default timeout of 10 minutes kicks in instead.Steps to Reproduce the Problem
PipelineRun
with aTask
that runs indefinitely.PipelineRun
.Additional Info
Putting aside whether 10 minutes is actually an appropriate default timeout length (I'd lean strongly that it should be higher, but am creating a separate issue for that), the fact is that there is no way currently to create a
PipelineRun
that can, deliberately, run forever. That's a problem.The text was updated successfully, but these errors were encountered: