Why is drupal_page_footer() triggering cron?
Hi In D7 I discovered at the end of drupal_page_footer()[1] cron jobs are started. On our website this triggers the search index being updated, which can take minutes. Needles to say that the user doesn't want to wait for this to be finished. I'm curious whether cron is relay called at the end of each page request? My understanding of hook_cron is that it is only called by cron.php. How can I make sure that this does not trigger any long running cron jobs? Regards Ernst [1] http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_page_f...
Ernst Look under Administration » Configuration » System » Cron You can set the frequency to never in which case you would need a cron job configured for the cron tasks to actually run. Nevets On 7/14/2011 1:11 PM, Ernst Plüss wrote:
Hi
In D7 I discovered at the end of drupal_page_footer()[1] cron jobs are started. On our website this triggers the search index being updated, which can take minutes. Needles to say that the user doesn't want to wait for this to be finished.
I'm curious whether cron is relay called at the end of each page request? My understanding of hook_cron is that it is only called by cron.php.
How can I make sure that this does not trigger any long running cron jobs?
Regards Ernst
[1]http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_page_f...
Hi, Maybe also a good alternative to poormanscron and crontab is the Croninfinite module. It's still a sanbox Project but it works fine for me for a month now, very simple and without struggeling with the crontab command. Cheers Von meinem drahtlosen BlackBerry®-Handheld gesendet -----Original Message----- From: Steve Ringwood <nevets@tds.net> Sender: development-bounces@drupal.org Date: Thu, 14 Jul 2011 14:20:50 To: <development@drupal.org> Reply-To: development@drupal.org, nevets@mailbag.com Subject: Re: [development] Why is drupal_page_footer() triggering cron? Ernst Look under Administration » Configuration » System » Cron You can set the frequency to never in which case you would need a cron job configured for the cron tasks to actually run. Nevets On 7/14/2011 1:11 PM, Ernst Plüss wrote:
Hi
In D7 I discovered at the end of drupal_page_footer()[1] cron jobs are started. On our website this triggers the search index being updated, which can take minutes. Needles to say that the user doesn't want to wait for this to be finished.
I'm curious whether cron is relay called at the end of each page request? My understanding of hook_cron is that it is only called by cron.php.
How can I make sure that this does not trigger any long running cron jobs?
Regards Ernst
[1]http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_page_f...
The API site is down at the moment, but I suspect you have Poormanscron enabled. Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
________________________________ From: Ernst Plüss
In D7 I discovered at the end of drupal_page_footer()[1] cron jobs are started. On our website this triggers the search index being updated, which can take minutes. Needles to say that the user doesn't want to wait for this to be finished. http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_page_f...
The API site is down at the moment, but I suspect you have Poormanscron enabled.
Sorta. Poormanscron is actually apart of Drupal 7. @Ernst: head to admin/config/system/cron and set “Run cron every” to Never. This assumes, of course, that you have your own legitimate cron running when you need it too server-side. -- Morbus Iff ( flee at once -- all is discovered ) http://www.disobey.com/ and http://www.disobey.com/wiki/ twitter: @morbusiff / skype: morbusiff / irc.freenode.net, Morbus An O'Reilly author and blogger: http://www.oreillynet.com/pub/au/779
*Drupal 7 has its own poormanscron like feature in core see http://drupal.org/node/331611* On Fri, Jul 15, 2011 at 1:10 AM, Ms. Nancy Wichmann <nan_wich@bellsouth.net>wrote:
The API site is down at the moment, but I suspect you have Poormanscron enabled.
*Nancy*
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
------------------------------ *From:* Ernst Plüss
In D7 I discovered at the end of drupal_page_footer()[1] cron jobs are started. On our website this triggers the search index being updated, which can take minutes. Needles to say that the user doesn't want to wait for this to be finished. http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_page_f...
Thanks, sivaji, I wouln't have noticed or understood if it wasn't by the appealing colors. However, I'm unsure whether this is accessible enough to color-blind people. On Thu, Jul 14, 2011 at 5:26 PM, sivaji j.g <sivaji2009@gmail.com> wrote:
*Drupal 7 has its own poormanscron like feature in core see http://drupal.org/node/331611*
Thanks, sivaji, I wouln't have noticed or understood if it wasn't by the appealing colors. However, I'm unsure whether this is accessible enough to color-blind people. -- Franz http://ciudaddelpico.com
participants (7)
-
Ernst Plüss -
Franz Glauber -
Morbus Iff -
Ms. Nancy Wichmann -
Patrick Drotleff -
sivaji j.g -
Steve Ringwood