Restart tasks on dead agents sooner (#4114)

This commit is contained in:
6543
2024-09-20 09:40:48 +02:00
committed by GitHub
parent cfe6df5add
commit eebaa10d10
4 changed files with 57 additions and 34 deletions

View File

@@ -14,6 +14,8 @@
package constant
import "time"
// DefaultConfigOrder represent the priority in witch woodpecker search for a pipeline config by default
// folders are indicated by supplying a trailing slash.
var DefaultConfigOrder = [...]string{
@@ -34,3 +36,6 @@ var TrustedClonePlugins = []string{
"docker.io/woodpeckerci/plugin-git",
"quay.io/woodpeckerci/plugin-git",
}
// TaskTimeout is the time till a running task is counted as dead.
var TaskTimeout = time.Minute