You are here

function scheduler_cron_is_running in Scheduler 8

Same name and namespace in other branches
  1. 7 scheduler.module \scheduler_cron_is_running()
  2. 2.x scheduler.module \scheduler_cron_is_running()

Return whether Scheduler cron is running.

This function can be called from any Scheduler function, from any contrib module or from custom PHP in a view or rule.

Return value

bool TRUE if scheduler_cron is currently running. FALSE if not.

File

./scheduler.module, line 600
Scheduler publishes and unpublishes nodes on dates specified by the user.

Code

function scheduler_cron_is_running() {
  return drupal_static('scheduler_cron');
}