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

vietcoop’s picture

Assigned: Unassigned » vietcoop
Status: Active » Fixed

Changes sent privately.

smoothify’s picture

i'm really interested in this functionality too - are you going to release code for this?

Thanks

Ben

MisterSpeed’s picture

Yup; 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

MisterSpeed’s picture

Status: Closed (fixed) » Needs work

The interface for this needs to be refined in 1.4

MisterSpeed’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.