is_scheduled( $this->pending_job_cron ); } /** * Cancel pending jobs cron. * * @return void */ public function cancel_pending_jobs_cron() { $this->cancel_all( $this->pending_job_cron ); } /** * Schedule pending jobs cron. * * @param int $interval Cron interval in seconds. * * @return string */ public function schedule_pending_jobs_cron( int $interval ) { return $this->schedule_recurring( time(), $interval, $this->pending_job_cron ); } /** * Add Async job with DB row ID. * * @param int $usedcss_row_id DB row ID. * * @return string */ public function add_job_status_check_async( int $usedcss_row_id ) { return $this->add_async( 'rocket_rucss_job_check_status', [ $usedcss_row_id, ] ); } }