Commit 0d50a3ad authored by Erick Hitter's avatar Erick Hitter
Browse files

When critical CLI command errors, trigger backoff code

If, for example, the plugin isn't loaded, this will reduce the number of unnecessary WP-CLI calls.
parent 694867e8
......@@ -147,7 +147,7 @@ func heartbeat() {
func getSites() ([]site, error) {
siteInfo, err := getInstanceInfo()
if err != nil {
return nil, err
siteInfo.Disabled = 1
}
if run := shouldGetSites(siteInfo.Disabled); false == run {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment