If cron.php does not return because of a script timeout, wget calls by default the site up to 20 times total until it gets a valid response.
When cron times out, the 20 times default-retry mostly aggravates things. A typical symptom of those retries are watchdog messages from cron in an unexpected ~ 1 minute interval.
This tiny patch adds the -t flag to the suggested wget call in INSTALL.txt to make sure that wget only calls cron.php once in a script execution.
-t number
--tries=number
Set number of retries to number. Specify 0 or inf for infinite
retrying. The default is to retry 20 times, with the exception of
fatal errors like ``connection refused'' or ``not found'' (404),
which are not retried.
Comments
Comment #1
alex_b commentedpatch in the correct format.
cite in box above is from wget man pages.
Comment #2
drewish commentedThis seems like a reasonable change to me.
Comment #3
moshe weitzman commentedyup.
Comment #4
dries commentedCommitted this patch to CVS HEAD. Thanks.
Comment #5
yched commentedshouldn't this be backported ?
Comment #6
alex_b commentedOk, here we go ;)
Comment #7
dries commentedI've committed this to DRUPAL-5 as well. Thanks!
Comment #8
alex_b commentedActually, the -t 1 option is most important for 4.7.x where there is no semaphore that makes sure that cron runs only once at a time.
Comment #9
killes@www.drop.org commentedComment #10
(not verified) commented