mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-27 23:46:31 +01:00
Add worker pool to parallelize analyses
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user