WordPress: Cron locking and Queue
Simple Cronjob Walker Create a CPT cronjob for your cronjobs. Add the relevant post meta data (action, last_executed,… and whatever you need) Create a walker function function my_cronjob_walker() { $args= array( ‘post_type’ => ‘cronjob’, ‘posts_per_page’ => 1, ‘meta_key’ => ‘last_executed’ ‘orderby’ => ‘meta_value’, ); $cronjob = new WP_Query($args); if ($cronjob->have_posts()) while ($cronjob->have_posts()) { $cronjob->the_post(); // … Read more