dagu
dagu copied to clipboard
allow usage of seconds in cron
it would be nice to have support for to run a job every n seconds, so i can do health monitoring every 5 seconds instead of every minute.
the cron libraries you use has support for seconds parsing, both in the frontend https://www.npmjs.com/package/cron-parser and in the backend https://github.com/robfig/cron?tab=readme-ov-file#upgrading-to-v3-june-2019
e.g.
cron.New(cron.WithParser(cron.NewParser(
cron.SecondOptional | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor,
)))
so maybe it just has to be enabled ?
currently im using cronicle to check every 5 seconds, but i want to switch to dagu.