Browse Source

Use default Git timeout when checking repo health (#33593)

pull/33599/head
Zettat123 10 months ago committed by GitHub
parent
commit
8aede14b1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      services/cron/tasks_basic.go

2
services/cron/tasks_basic.go

@ -54,7 +54,7 @@ func registerRepoHealthCheck() { @@ -54,7 +54,7 @@ func registerRepoHealthCheck() {
RunAtStart: false,
Schedule: "@midnight",
},
Timeout: 60 * time.Second,
Timeout: time.Duration(setting.Git.Timeout.Default) * time.Second,
Args: []string{},
}, func(ctx context.Context, _ *user_model.User, config Config) error {
rhcConfig := config.(*RepoHealthCheckConfig)

Loading…
Cancel
Save