Pipeline: The default TaskRun timeout is too short.

Created on 12 Jun 2019  路  7Comments  路  Source: tektoncd/pipeline

Expected Behavior

A user shouldn't have their TaskRuns killed in 10 minutes if they haven't specified a larger PipelineRun timeout.

Actual Behavior

The TaskRuns do get killed.

Steps to Reproduce the Problem

  1. Kinda obvious, really. =)

Additional Info

We should bump this up to something more reasonable. Also relates to #978.

good first issue help wanted kindesign kinfeature

All 7 comments

@abayer I feel there is two things we could do :

  • Bump the timeout to something more reasonable (as a default), like 25min or sthg
  • Make it possible to configure the default Pipeline timeout on the controller side

@vdemeester The latter would be fantastic.

/assign @houshengbo
Let me play with the timeout.

@vdemeester @bobcatfish @abayer

First, I'd like to increase the internal default timeout to 60 mins. Is that OK so far?
Then, since the timeout is not limited to taskrun only, I am thinking of creating a new YAML of a new ConfigMap under config dir, e.g. config-default.yaml for the configuration of a configurable timeout key called: defaultTimeoutMinutes.
If defaultTimeoutMinutes is not set, we fall back to the system internal timeout 60 mins. If it is set, we will use defaultTimeoutMinutes as the default timeout across all the tekton resources, if timeout is needed, but not specified.

How does it sound??

Sounds reasonable to me!

Makes sense!

OK, I will implement as described.

Was this page helpful?
0 / 5 - 0 ratings