Skip to content

Commit

Permalink
Use default Git timeout when checking repo health (#33593)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zettat123 authored Feb 14, 2025
1 parent 70327d6 commit 8aede14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/cron/tasks_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8aede14

Please sign in to comment.