dagu icon indicating copy to clipboard operation
dagu copied to clipboard

allow usage of seconds in cron

Open elee1766 opened this issue 5 months ago • 1 comments

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.

elee1766 avatar Sep 02 '24 23:09 elee1766