[wp-trac] [WordPress Trac] #57159: Add scheduled events in the site health report.

WordPress Trac noreply at wordpress.org
Tue Jan 31 17:18:16 UTC 2023


#57159: Add scheduled events in the site health report.
----------------------------+------------------------------
 Reporter:  sebastienserre  |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Site Health     |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  2nd-opinion     |     Focuses:
----------------------------+------------------------------

Comment (by rawrly):

 I did a little digging, discussion (pinging @Clorith to bring him into the
 conversation), and testing. It appears there is a notification within Site
 Health that informs users when scheduled tasks fail to run.

 https://github.com/WordPress/WordPress/blob/master/wp-admin/includes
 /class-wp-site-health.php#L1787

 I tested this on my site and confirmed it works as expected, warning me
 that a "scheduled event has failed" with the name of the most recent WP-
 Cron task that failed to run. Would it help your concern if this warning
 are made more prominent or changed?

 I have the following ideas that may help:
 1. The site health warning for failed to run scheduled tasks should make
 clear it is related to WP-Cron tasks, with a link to appropriate
 documentation to help the user address the problem. (documentation will
 needed to be written for this)
 2. The site health warning currently only lists the most recent failed
 task, it would be helpful to provide a number of failed tasks (WP-Crons)
 or provide an expandable list of failed tasks.
 3. It is true that not all WP-Cron tasks are equally important, some tasks
 failing to run (such as auto-updates or tasks introduced by plugins) shold
 be marked as "critical issues" instead of "recommended improvements".
 (someone would need to make a list of security related Wp-Cron default
 task names, and allow plugin devleopers to add their own task names to
 this list)

 Is this in line with your goals?

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


More information about the wp-trac mailing list