夏期劇場
夏期劇場

Reputation: 18347

How do Drupal Cron Tasks get activated in Linux?

In Linux, we use crontab to run automations. So far i know only that system cron can make automated tasks. Now i found out Drupal has the Crons also. But, the Drupal whatever is a bundle of script itself only.

I so far realized there is no way to make a PHP script to be up & running itself, without System Cron. And also it should not be.

Upvotes: 0

Views: 229

Answers (1)

Foo
Foo

Reputation: 576

Drupal cron is more of a psuedo-cron. It doesn't utilize the system crontab, or anything like that. Rather, it runs during the bootstrap process.

If your cron is set to 3 hours, for example, the bootstrap process (everytime you visit a Drupal page) will check to see if it's time to run the cron. If the time is >= 3 hours, the cron tasks will run.

This means that the cron runs are dependent on the visits your site gets. If no one is visiting your site, then the cron will not run.

Upvotes: 1

Related Questions