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

chore: add quick start option

This commit is contained in:
Ferdinand Mütsch
2021-12-26 13:21:20 +01:00
parent 0039f67a2f
commit acf16421a6
4 changed files with 54 additions and 48 deletions

View File

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