[drupal-devel] [feature] Pass include and exclude parameters to cron.php for fine grained cron timing

moshe weitzman drupal-devel at drupal.org
Wed Mar 23 21:33:08 UTC 2005


Issue status update for http://drupal.org/node/19173

 Project:      Drupal
 Version:      cvs
 Component:    base system
 Category:     feature requests
 Priority:     normal
 Assigned to:  robertDouglass
 Reported by:  robertDouglass
 Updated by:   moshe weitzman
 Status:       patch

an alternative approach is to make a quick PHP page which simply calls
mailhandler_cron and any others that need to be called more frequently
than normal. then call that php page from cron every couple minutes ...
not so sure this complexity is worth having.


moshe weitzman



Previous comments:
------------------------------------------------------------------------

March 20, 2005 - 05:08 : robertDouglass

Attachment: http://drupal.org/files/issues/cronpatch.txt (1.99 KB)

Some sites need fine grained timing for cron runs. For example, a site
that relies heavily on moblogging, mailhandler or any other email based
function would want to connect with the email server pretty often, say
ever 2-5 minutes. On another site I'm working on we generate flat files
for all of a certain node type on a regular basis, though not every 2-5
minutes. Thus the need for cron tasks on different schedules. This
patch allows you to make a list of modules to either include or exclude
when running cron, so that several cron tasks for one site can be
defined. The default behavior in the absence of both parameters is to
run all, so the patch preserves backwards compatibility.
 * Examples:
 *
 * runs all hooks
 * http://mysite.com/cron.php
 *
 * runs all hooks except the search and aggregator modules
 * http://mysite.com/cron.php?exclude=search,aggregator
 *
 * runs only search, archive and aggregator modules
 * http://mysite.com/cron.php?includ=search,archive,aggregator


------------------------------------------------------------------------

March 23, 2005 - 16:23 : Dries

Isn't it possible to run all cron functions every 2-5 minutes?  The
impact of that should be minimal.





More information about the drupal-devel mailing list