Add registers a single cron job.
If there is already a job with the provided id, then the old job will be replaced with the new one.
cronExpr is a regular cron expression, eg. "0 */3 * * *" (aka. at minute 0 past every 3rd hour). Check cron.NewSchedule() for the supported tokens.
SetInterval changes the current cron tick interval (it usually should be >= 1 minute).
SetTimezone changes the current cron tick timezone.
Generated using TypeDoc
Cron is a crontab-like struct for tasks/jobs scheduling.