Add worker pool to parallelize analyses

This commit is contained in:
CrazyMax
2019-06-09 19:43:48 +02:00
parent 4742827709
commit 4614a7568d
10 changed files with 178 additions and 71 deletions

View File

@@ -85,7 +85,7 @@ func main() {
// Start scheduler
c = cron.NewWithLocation(location)
log.Info().Msgf("Start watcher with schedule %s", cfg.Watch.Schedule)
log.Info().Msgf("Watcher initialized with schedule %s", cfg.Watch.Schedule)
if err := c.AddJob(cfg.Watch.Schedule, diun); err != nil {
log.Fatal().Err(err).Msg("Cannot create cron task")
}