[wp-trac] [WordPress Trac] #47223: Site Health Check: "last missed cron" test too aggressive

WordPress Trac noreply at wordpress.org
Thu Aug 15 00:35:03 UTC 2019


#47223: Site Health Check: "last missed cron" test too aggressive
-------------------------------------------------+-------------------------
 Reporter:  DavidAnderson                        |       Owner:
                                                 |  peterwilsoncc
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.3
Component:  Site Health                          |     Version:  5.2
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  site-health has-patch has-unit-      |     Focuses:
  tests commit                                   |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45801" 45801]:
 {{{
 #!CommitTicketReference repository="" revision="45801"
 Site Health Check: Increase time allowance for cron checks.

 Introduces `WP_Site_Health::has_late_cron()` for late wp-cron jobs and
 extends the time allowance before a job is considered missed.

 In a standard configuration using loopback requests, a job is considered
 late once past due and missed over five minutes past due.

 Late and missed time frames are extended if `DISABLE_WP_CRON` is defined
 as `true` to allow for crontab tasks running less frequently. A job is
 considered late once it's 15 minutes past due and missed over one hour
 past due.

 A file for site health unit tests has been introduced with tests for cron
 in critical, late and missed states.

 Props rockfire, afragen, peterwilsoncc.
 Fixes #47223.
 }}}

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


More information about the wp-trac mailing list