Skip to content

Commit

Permalink
Add the support of configuring the default timeout of TaskRun
Browse files Browse the repository at this point in the history
* Change the default timeout from 10 mins to 60 mins
* Add a new param default_timeout for TaskRun
  • Loading branch information
Vincent Hou committed Jun 20, 2019
1 parent 98000b4 commit 2b10d24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/taskruns.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ following fields:
[input resources](#providing-resources)
- [`outputs`] - Specifies [output resources](#providing-resources)
- `timeout` - Specifies timeout after which the `TaskRun` will fail. Defaults
to ten minutes.
to 60 minutes.
- [`nodeSelector`] - a selector which must be true for the pod to fit on a
node. The selector which must match a node's labels for the pod to be
scheduled on that node. More info:
Expand Down
2 changes: 1 addition & 1 deletion pkg/reconciler/timeout_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

const (
defaultTimeout = 10 * time.Minute
defaultTimeout = 60 * time.Minute
maxBackoffSeconds = 120
)

Expand Down

0 comments on commit 2b10d24

Please sign in to comment.