mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 14:31:41 +01:00
Initialize cron last (#20373)
Cron will try to run certain things at startup but these depend on multiple things being set-up. Therefore we should initialize cron last. Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
4f267ef643
commit
dbd3b7f9fd
1 changed files with 3 additions and 1 deletions
|
@ -141,7 +141,6 @@ func GlobalInitInstalled(ctx context.Context) {
|
||||||
mustInit(repo_service.Init)
|
mustInit(repo_service.Init)
|
||||||
|
|
||||||
// Booting long running goroutines.
|
// Booting long running goroutines.
|
||||||
cron.NewContext(ctx)
|
|
||||||
issue_indexer.InitIssueIndexer(false)
|
issue_indexer.InitIssueIndexer(false)
|
||||||
code_indexer.Init()
|
code_indexer.Init()
|
||||||
mustInit(stats_indexer.Init)
|
mustInit(stats_indexer.Init)
|
||||||
|
@ -160,6 +159,9 @@ func GlobalInitInstalled(ctx context.Context) {
|
||||||
|
|
||||||
auth.Init()
|
auth.Init()
|
||||||
svg.Init()
|
svg.Init()
|
||||||
|
|
||||||
|
// Finally start up the cron
|
||||||
|
cron.NewContext(ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NormalRoutes represents non install routes
|
// NormalRoutes represents non install routes
|
||||||
|
|
Loading…
Reference in a new issue