Skip to content
Snippets Groups Projects
Select Git revision
  • 94e30bf7761f5857945df906ae5ba7da5c2fc9b5
  • 11.x default protected
  • 10.6.x protected
  • 10.5.x protected
  • 11.2.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
  • 10.4.5 protected
  • 11.0.13 protected
41 results

cron.php

Blame
  • Dries Buytaert's avatar
    Dries Buytaert authored
    - Patch by JonBob: for consistency and readability, add brief descriptions of each source file inside the @file comment block at the head of the file. This helps with Doxygen indexing, and also allows neophytes to see what a file does immediately on opening the source, regardless of the organization of the hooks.
    94e30bf7
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    cron.php 688 B
    <?php
    // $Id$
    
    /**
     * @file
     * Handles incoming requests to fire of regularly-scheduled tasks (cron jobs).
     */
    
    include_once 'includes/bootstrap.inc';
    include_once 'includes/common.inc' ;
    
    // If not in 'safe mode', increase the maximum execution time:
    if (!ini_get('safe_mode')) {
      set_time_limit(240);
    }
    
    // Check if the last cron run completed
    if (variable_get('cron_busy', false)) {
      watchdog('warning', t('Last cron run did not complete.'));
    }
    else {
      variable_set('cron_busy', true);
    }
    
    // Iterate through the modules calling their cron handlers (if any):
    module_invoke_all('cron');
    
    // Clean up
    variable_set('cron_busy', false);
    watchdog('regular', t('Cron run completed'));
    
    ?>