Skip to content

Commit 7697df9

Browse files
GiteaBotZettat123
andauthored
Use default Git timeout when checking repo health (#33593) (#33598)
Backport #33593 by @Zettat123 Use `git.timeout.DEFAULT` configuration instead of 60 seconds. Co-authored-by: Zettat123 <[email protected]>
1 parent d17f8ff commit 7697df9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/cron/tasks_basic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func registerRepoHealthCheck() {
5454
RunAtStart: false,
5555
Schedule: "@midnight",
5656
},
57-
Timeout: 60 * time.Second,
57+
Timeout: time.Duration(setting.Git.Timeout.Default) * time.Second,
5858
Args: []string{},
5959
}, func(ctx context.Context, _ *user_model.User, config Config) error {
6060
rhcConfig := config.(*RepoHealthCheckConfig)

0 commit comments

Comments
 (0)