Closed (fixed)
Project:
SuperCron
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
5 Jun 2009 at 17:30 UTC
Updated:
2 Apr 2010 at 00:20 UTC
Some hooks are called far too often and perform little or no work. It would be nice to be able to define the call periodicity so that we can say that a hook shouldn't be executed more than once every X hours.
Comments
Comment #1
vietcoop commentedChanges sent privately.
Comment #2
smoothify commentedi'm really interested in this functionality too - are you going to release code for this?
Thanks
Ben
Comment #3
MisterSpeed commentedYup; we're building two scheduling metaphors into successive versions of SuperCron. One is relative timing: how many Cron call skips do we accept between invocations (should it be called every time, every 2 times, etc.); this way if you run your cron call every 5 minutes for example you can get a task to execute every 6 skips or every 30 minutes. The second is deterministic timing: I want, say, this time-consuming task to be broken down such that it executes at night between 3 and 5 AM EST, or I want a backup to be generated once every day except on weekends, etc.
Comment #5
MisterSpeed commentedThe interface for this needs to be refined in 1.4
Comment #6
MisterSpeed commentedImplemented in 1.4:
http://ftp.drupal.org/files/projects/supercron-6.x-1.4-beta1.tar.gz
Enjoy !