add back the default setting values and fix #739 (#1093)

This commit is contained in:
Lunny Xiao 2017-03-01 23:10:12 +08:00 committed by GitHub
parent cfdc62e7fa
commit 0380ce269f
1 changed files with 10 additions and 4 deletions

View File

@ -326,6 +326,8 @@ var (
RunAtStart bool RunAtStart bool
Schedule string Schedule string
}{ }{
Enabled: true,
RunAtStart: false,
Schedule: "@every 10m", Schedule: "@every 10m",
}, },
RepoHealthCheck: struct { RepoHealthCheck: struct {
@ -335,6 +337,8 @@ var (
Timeout time.Duration Timeout time.Duration
Args []string `delim:" "` Args []string `delim:" "`
}{ }{
Enabled: true,
RunAtStart: false,
Schedule: "@every 24h", Schedule: "@every 24h",
Timeout: 60 * time.Second, Timeout: 60 * time.Second,
Args: []string{}, Args: []string{},
@ -344,6 +348,7 @@ var (
RunAtStart bool RunAtStart bool
Schedule string Schedule string
}{ }{
Enabled: true,
RunAtStart: true, RunAtStart: true,
Schedule: "@every 24h", Schedule: "@every 24h",
}, },
@ -353,6 +358,7 @@ var (
Schedule string Schedule string
OlderThan time.Duration OlderThan time.Duration
}{ }{
Enabled: true,
RunAtStart: true, RunAtStart: true,
Schedule: "@every 24h", Schedule: "@every 24h",
OlderThan: 24 * time.Hour, OlderThan: 24 * time.Hour,