/**
  * Receives the ajax call to cleanup a job
  * @return type
  */
 public function batch_cleanup()
 {
     $job_id = sanitize_text_field($_REQUEST['job_id']);
     $batch_runner = new EventEspressoBatchRequest\BatchRequestProcessor();
     $response_obj = $batch_runner->cleanup_job($job_id);
     $this->_return_json($response_obj->to_array());
 }
 /**
  * Receives the ajax call to cleanup a job
  * @return type
  */
 public function batch_cleanup()
 {
     $job_id = sanitize_text_field($this->_req_data['job_id']);
     $batch_runner = new EventEspressoBatchRequest\BatchRequestProcessor();
     $response_obj = $batch_runner->cleanup_job($job_id);
     $this->_template_args['data'] = $response_obj->to_array();
     $this->_return_json();
 }