Croninfinite | croning cron without cron

Component ID

1182956

Component name

Croninfinite | croning cron without cron

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

2273

Component created

Component changed

Component body

Croninfinite allows you to run cron just like a cron job - but completely without a crontab, a site visitor or a manual cron run. It's really a kind of PHP implementation of the unix cron utility what is recommended for most sites.

Use cases

  • You don't want to rely on drupals default cron setting (only triggers if your site is visited).
  • You are not able to use or don't even know about unix crontab.
  • But you want to have your cron run routinely.

How to use it?

After installation you have to configure the interval cron should be triggered at cron's settings page (admin/config/system/cron) and start croninfinite.
Now it should keep running as background process and trigger cron as desired.

Advanced cron-timing

Croninfinite offers you a very comfortable way to time your cron runs but sometimes this is not enough and you need an advanced timing. This is what timing-rules are made for:
The format of rules for advanced timing is very similar to the unix crontab utility syntax:

* * * * * <= the timing-rule
┬ ┬ ┬ ┬ ┬
│ │ │ │ │
│ │ │ │ └──── Weekday (0-6) (Sunday=0) [-Weekday]
│ │ │ └────── Month (1-12) [-Month]
│ │ └──────── Day (1-31) [-Day]
│ └────────── [*/] Hour (0-23)
└──────────── [*/] Minute (0-59)

Examples:

0 * * * * Hourly
*/30 * * * * Every thirty minutes
0 0 * * 1-5 At midnight from Monday to Friday
*/5 0 1 * * Every five minutes about 0 o'clock on the first day of month
0 */3 * 2-11 * Every three hours from Februar to November

Related modules