[wp-trac] [WordPress Trac] #57924: Cron Goes Missing. _set_cron_array called with incorrect number of crons

WordPress Trac noreply at wordpress.org
Wed Mar 15 10:05:46 UTC 2023


#57924: Cron Goes Missing. _set_cron_array called with incorrect number of crons
--------------------------+------------------------------
 Reporter:  j3gaming      |       Owner:  j3gaming
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Cron API      |     Version:  6.1.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by domainsupport):

 @j3gaming Is your cron still set by the system to fire every minute as you
 mention here? https://wordpress.org/support/topic/cron-unschedule-event-
 error-for-hook/page/6/#post-16503835

 Also, have you resolved the issue with your database that you mention
 here? https://wordpress.org/support/topic/cron-unschedule-event-error-for-
 hook/page/6/#post-16526520

 Firing cron every minute by the system (rather than waiting for a
 WordPress page load) should prevent a race condition I believe ... ?

 But ... if your database connection is lost then cron events will fail to
 be re-scheduled (which is not the same as being deleted I don't think) as
 I mentioned here https://wordpress.org/support/topic/cron-unschedule-
 event-error-for-hook/page/6/#post-16526604

 I like @galbaras hypothesis here
 https://core.trac.wordpress.org/ticket/57271#comment:24 and my gut is that
 this is what's causing your issue.

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


More information about the wp-trac mailing list