[wp-trac] [WordPress Trac] #57271: Cron unschedule / reschedule event errors

WordPress Trac noreply at wordpress.org
Thu May 2 09:05:00 UTC 2024


#57271: Cron unschedule / reschedule event errors
------------------------------------------+------------------------------
 Reporter:  domainsupport                 |       Owner:  audrasjb
     Type:  defect (bug)                  |      Status:  assigned
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Cron API                      |     Version:  6.0
 Severity:  normal                        |  Resolution:
 Keywords:  needs-unit-tests needs-patch  |     Focuses:
------------------------------------------+------------------------------

Comment (by domainsupport):

 Replying to [comment:73 galbaras]:
 > Shouldn't the patch written by @peterwilsoncc help sort this out? It
 prevents duplicate unscheduling and reports duplicate scheduling attempts.

 I don't believe so. It would prevent the error from showing in the log but
 I don't believe it would resolve the cause of the issue for you. The cause
 for you appears to be WP cron firing twice in the same microsecond which
 means that the patch would not prevent your scheduled events from running
 twice.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57271#comment:74>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list