Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multisite cron-runner #325

Open
Clorith opened this issue Nov 15, 2021 · 0 comments
Open

Multisite cron-runner #325

Clorith opened this issue Nov 15, 2021 · 0 comments

Comments

@Clorith
Copy link
Member

Clorith commented Nov 15, 2021

Currently, we rely on WP-CLI to trigger any cron events where needed, but this means keeping tabs on all subsites if a multisite is set up, and spawning a cron event to run WP-CLI on that subsite as well.

Instead, we should leverage the fact taht all cron tasks run on the server, and create a tool that's bundled, and deployed, with Project Base. This should loop over and trigger the WP-CLI crons on each subsite in a network where appropriate.

If this is implemented, to account for latency, heavy loads etc, cron tasks should only trigger every 5 minutes, instead of every minute. This is a DevOps part of it all, but just making a note for the future.

Alternatively, we may want to look at solutions like Cavalcade for larger networks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant