[wp-trac] [WordPress Trac] #47223: Site Health Check: "last missed cron" test too aggressive
WordPress Trac
noreply at wordpress.org
Wed May 29 22:22:09 UTC 2019
#47223: Site Health Check: "last missed cron" test too aggressive
-------------------------------------+-----------------------------
Reporter: DavidAnderson | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Administration | Version: 5.2
Severity: normal | Resolution:
Keywords: needs-patch site-health | Focuses:
-------------------------------------+-----------------------------
Comment (by peterwilsoncc):
How about this if `DISABLE_WP_CRON === true`:
* Assume site is using crontab or similar to process events
* wp-cron tasks are considered late if they haven't run for 15 minutes,
`15 * MINUTE_IN SECONDS`
* Only consider wp-cron tasks failed after one hour, ie `HOUR_IN_SECONDS`
Otherwise:
* The wp-cron loopback or redirect ought to have run when the user logged
in to the dashboard
* wp-cron tasks are considered late if they haven't run for five minutes
* Any later and they are considered failed
This will require some additional conditions be added to the site health
component.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47223#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list