Posted by alex_b on June 11, 2007 at 3:46pm
| Project: | Drupal core |
| Version: | 4.7.x-dev |
| Component: | install system |
| Category: | bug report |
| Priority: | normal |
| Assigned: | alex_b |
| Status: | closed (fixed) |
Issue Summary
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.| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| wget_try_only_once.patch | 336 bytes | Ignored: Check issue status. | None | None |
Comments
#1
patch in the correct format.
cite in box above is from wget man pages.
#2
This seems like a reasonable change to me.
#3
yup.
#4
Committed this patch to CVS HEAD. Thanks.
#5
shouldn't this be backported ?
#6
Ok, here we go ;)
#7
I've committed this to DRUPAL-5 as well. Thanks!
#8
Actually, 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.
#9
#10