[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 22:41:16 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 j3gaming):

 I changed the wp_schedule_event logging a bit.

 ~line 311

 {{{
 error_log("wp_schedule_event(" . var_export($timestamp, true) . ", " .
 var_export($recurrence, true) . ", " . var_export($hook, true) . ", ... ,
 .... )");
 return _set_cron_array( $crons, $wp_error );
 }}}


 That way I can see where the overlapping schedule events are coming from
 before it hits the error.

 For example, I'm now getting:


 {{{
 [15-Mar-2023 22:37:01 UTC] wp_schedule_event(1678920365, 'every10minutes',
 'crontrol_cron_job', ... , .... )
 [15-Mar-2023 22:37:01 UTC] wp_schedule_event(1678919852, 'minutely',
 'crontrol_cron_job', ... , .... )
 }}}

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


More information about the wp-trac mailing list