original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Whether the current job is canceled
  @param \gplcart\core\models\Job $job_model
  @return boolean
docstring_tokens: Whether the current job is canceled