Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Faktory Pro can enqueue jobs periodically by adding a TOML file to
/etc/faktory/conf.d with your set of cron jobs:
[[cron]] schedule = "*/5 * * * *" [cron.job] type = "FiveJob" queue = "critical" [cron.job.custom] foo = "bar" [[cron]] schedule = "12 * * * *" [cron.job] type = "HourlyReport" retry = 3 [[cron]] schedule = "* * * * *" [cron.job] type = "EveryMinute"
Note the ability to configure the queue, retries and custom job elements. You may have as many TOML files in /etc/faktory/conf.d as you wish, all
[[cron]] elements will be merged together.
Faktory Pro will reload cron jobs (really all configuration) without shutting down if you send the HUP signal:
# systemd service ExecReload=/bin/kill -HUP $MAINPID > systemctl reload faktory # docker container > docker kill --signal=HUP <container>