public function isCanceledJob($job_model)
    {
        $cancel_job_id = $this->getQuery('cancel_job');

        if (empty($cancel_job_id)) {
            return false;
        }

        $job_model->delete($cancel_job_id);
        return true;
    }
public function isCanceledJob($job_model)
    {
        $cancel_job_id = $this->getQuery('cancel_job');

        if (empty($cancel_job_id)) {
            return false;
        }

        $job_model->delete($cancel_job_id);
        return true;
    }
public function isCanceledJob ( $ job_model ) { $ cancel_job_id = $ this -> getQuery ( 'cancel_job' ) ; if ( empty ( $ cancel_job_id ) ) { return false ; } $ job_model -> delete ( $ cancel_job_id ) ; return true ; }
Whether the current job is canceled
@param \gplcart\core\models\Job $job_model
@return boolean
Whether the current job is canceled