1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: do not run expensive jobs initially but only scheduled

This commit is contained in:
Ferdinand Mütsch
2022-04-18 21:07:15 +02:00
parent 9d7688957f
commit ff7d595a86
3 changed files with 5 additions and 17 deletions

View File

@@ -169,11 +169,9 @@ func main() {
miscService = services.NewMiscService(userService, summaryService, keyValueService)
// Schedule background tasks
if !config.QuickStart {
go aggregationService.Schedule()
go miscService.ScheduleCountTotalTime()
go reportService.Schedule()
}
go aggregationService.Schedule()
go miscService.ScheduleCountTotalTime()
go reportService.Schedule()
routes.Init()