Skip to content

allow usage of seconds in cron #676

@elee1766

Description

@elee1766

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions