Closed (outdated)
Project:
Drupal core
Version:
11.x-dev
Component:
cron system
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2011 at 20:58 UTC
Updated:
2 Jun 2025 at 14:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
madeby commentedIs this possible in any way on D7?
Comment #2
nirbhasa commentedI think that patch should apply equally well to D7, if you want to try. However the policy is to commit to D8 dev first.
Comment #3
Bojhan commentedWhy dont you just make a module for this? Or do it in apache, I dont really get when you are doing something this advanced - core would need to support in it.
Comment #4
jhr commented@Bojhan... Another module should be written to duplicate cron's functionality?
I like this patch because it adds shorter times, my case is checking for feeds.
Maybe I'm misunderstanding how core cron is supposed to work, but core updates has the option to check for runs daily or weekly.
admin/reports/updates/settings
I think if any modules run on every cron run then that's their bad functionality.
Comment #6
jhr commentedAnother Patch adding 5,10,15,30mins
Comment #7
jhr commented... and a status changed
Comment #8
bagvendt commentedOkay first time reviewing a patch here so go easy on me :)
Applied the patch and everything seems to be in order.
My only note would be that according to: this link the patch seems to reveal a problem in the cron module.
I am thinking what if someone wanted to have a cron every 27th minute or every third minute. My point -> maybe the cron intervals should be configurable in some other module.
Comment #9
jhr commentedIf I understand Drupal cron & linux cron correctly, I think ideally that would be done by the system(linux) cron, and Drupal's cron would be available to run by setting a time interval shorter than an hour.
ex(if my cron-fu doesn't fail me):
Then Drupal's cron every 45 mins.
Comment #10
Anonymous (not verified) commentedI really believe that it's a bad logic you're applying.
Who will determine the perfect balance? What should the minimum soft-cron interval be? I say let we keep the current intervals or let the user set his own, while supplying better documentation of what cron is, and why it really should be run by a unix cron job instead.
Lets not make a halfway change, lets fix this the right way, so that we don't have this resurface when someone wants a 3 min interval, or perhaps a 15 min one.
Comment #11
bagvendt commentedI have added a feature request over here suggesting an alternative approach to resolve this issue.
#1679660: Add link to cron tutorial on drupal.org
Comment #12
valthebald+1 to #11
Comment #13
elvis2 commentedHere is another method, using batching: http://drupal.org/node/1679660#comment-7432824
Comment #14
valthebald@elvis2: #1679660: Add link to cron tutorial on drupal.org can provide a way of manual processing of indexing or other time-consuming operation using web UI, not a way of recurring, scheduled tasks, automatically run by the system
Comment #27
smustgrave commented#11 appears to have been committed. And with no movement in 10+ years wonder if this is still a desired feature?
Comment #28
kikecastillo commentedI would love this feature to be part of core. I understand 1 hour is enough and it should be per default but why not allow more options?
Comment #30
smustgrave commentedMy understanding there could be performance issues for going shorter. That said there are modules like ultimate cron that allow for more control.