[wp-trac] [WordPress Trac] #8923: cron timeout is too short
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 22 23:50:57 GMT 2009
#8923: cron timeout is too short
--------------------------+-------------------------------------------------
Reporter: hailin | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Many users have reported that 2.7 cron sometimes fails to publish future
post.
And it is further reported that it depends on the number of jobs on the
cron queue - when the queue is too long, it will miss some.
I believe this is because we set the timeout value too short:
wp_remote_post($cron_url, array('timeout' => 0.01, 'blocking' => false));
When making a request to wp-cron.php, it won't return until all cron jobs
are executed. And 0.01 is just too short time span. It doesn't hurt to
give it sufficent time, such as 10 minutes. It will return as long as the
mature crons are fired up and executed (in most cases, it's going to be at
most a few seconds ).
--
Ticket URL: <http://trac.wordpress.org/ticket/8923>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list