[wp-trac] [WordPress Trac] #17462: Improve cron locking

WordPress Trac wp-trac at lists.automattic.com
Wed May 18 22:37:44 UTC 2011


#17462: Improve cron locking
--------------------------+-----------------------------
 Reporter:  ryan          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Cron          |     Version:  3.1.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------------

Comment (by duck_):

 Replying to [comment:5 duck_]:
 > As well as the longer time out period we could, as part of the loop in
 wp-cron.php, check the difference in time since the start and if it's
 approaching the lock time out then break. That means that processes that
 have taken too long stop as if they have died though I suppose they would
 clear the lock in doing so.

 Poked a hole in this one. First long running process may clear the
 transient from under a second process which has followed on after $flag
 has timed out. This would allow a third cron process to run without being
 blocked (and, possibly, so on) leading to the current problem. Haven't
 tested to confirm, but seems like it's possible.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17462#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list