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

WordPress Trac noreply at wordpress.org
Wed Jun 21 10:57:17 UTC 2023


#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:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------

Comment (by Krstarica):

 After changing crontab entry from:
 {{{
 */5 * * * * curl https://example.com/wp-cron.php?doing_wp_cron > /dev/null
 2>&1
 }}}
 to:
 {{{
 */5 * * * * cd /var/www/example.com/htdocs; wp cron event run --due-now >
 /dev/null 2>&1
 }}}
 don't see "Cron unschedule event error for hook" errors in the log
 anymore.

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


More information about the wp-trac mailing list