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

Add WP CLI command to skip job backlog. #68

Open
peterwilsoncc opened this issue Oct 2, 2018 · 0 comments
Open

Add WP CLI command to skip job backlog. #68

peterwilsoncc opened this issue Oct 2, 2018 · 0 comments

Comments

@peterwilsoncc
Copy link
Contributor

Adding a cron job with the code wp_schedule_event( 0, 'daily', 'cavalcade_daily' ); will cause the job to run constantly until it's run once for each day since 1/1/1970. Once the job has caught up it will run at midnight each day, as expected.

Adding a command such as wp cavalcade job restart {id} --skip-backlog will allow users to skip the backlog and ensure the job only runs once per day.

Follow up to humanmade/Cavalcade-Runner#53

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