Cavalcade icon indicating copy to clipboard operation
Cavalcade copied to clipboard

Add WP CLI command to skip job backlog.

Open peterwilsoncc opened this issue 7 years ago • 0 comments

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

peterwilsoncc avatar Oct 02 '18 22:10 peterwilsoncc