Registry / utility / robfig-cron-v3

robfig-cron-v3

JSON →
library3.0.1gogounverified

Package cron implements a cron spec parser and job runner for scheduling recurring tasks.

go get github.com/robfig/cron/v3
INSTALL
IMPORT
SIG · ROBFIG-CRON-V3
R
robfig-cron-v3
utilitygov3.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cron
github.com/robfig/cron/v3

Runs a job every minute using a cron scheduler.

import "github.com/robfig/cron/v3" func main() { c := cron.New() c.AddFunc("@every 1m", func() { println("tick") }) c.Start() select {} }
Debug
Known issues
breakingv3 changed the parser to require field descriptors like '?' or '*' for day-of-week and day-of-month; v2 expressions may not work.
fix
Update cron expressions to include all 5 fields (minute, hour, day-of-month, month, day-of-week) with proper descriptors.
affects: >=3.0.0
Upgrade
Version history
3.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
robfig-cron-v3 — go get robfig-cron-v3 · libregistry