Automattic / Cron-Control

A fresh take on running WordPress's cron system, allowing parallel processing

Home Page:https://wordpress.org/plugins/wp-cron-control/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set short timestamp on error

ethitter opened this issue · comments

Rather than mocking that event execution is disabled indefinitely, use a near-term timestamp to ensure runner doesn't stop for too long.

siteInfo.Disabled = 1

The new runner will continue with it's "getSites" interval even on error: https://github.com/Automattic/cron-control-runner/blob/7504e921e06595bf2b0e0fc97febdd1aed4c0369/orchestrator/orchestrator.go#L95-L96

Since site-listing is less of a requirement for overall event fetching/running now, this can happen in like ~60seconds intervals. hitting the site once a minute to see if it's working again feels sufficient - not too heavy and not too infrequent.