[wp-trac] [WordPress Trac] #56048: Add error logging and hooks to wp-cron.php

WordPress Trac noreply at wordpress.org
Tue Sep 20 15:16:10 UTC 2022


#56048: Add error logging and hooks to wp-cron.php
------------------------------+-----------------------
 Reporter:  Enchiridion       |       Owner:  audrasjb
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  6.1
Component:  Cron API          |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------
Changes (by audrasjb):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54258" 54258]:
 {{{
 #!CommitTicketReference repository="" revision="54258"
 Cron API: Add error logging and hooks to `wp-cron.php`.

 This changeset adds error logging on `wp_reschedule_event()` and
 `wp_unschedule_event` in `wp-cron.php`. This allows proper error logging
 when random errors appear. It also introduces
 `cron_reschedule_event_error` and `cron_unschedule_event_error` hooks
 which can be used to trigger additional behaviors when an error occurs.

 Props Enchiridion, johnbillion, costdev.
 Fixes #56048.
 }}}

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


More information about the wp-trac mailing list