public function JobExecutor::cast in Apigee Edge 8
Executes a job asynchronously.
This puts the job into the "apigee_edge_job" cron queue.
Parameters
\Drupal\apigee_edge\Job\Job $job: The job to execute later.
Throws
\Exception
Overrides JobExecutorInterface::cast
File
- src/
JobExecutor.php, line 168
Class
- JobExecutor
- Job executor service.
Namespace
Drupal\apigee_edgeCode
public function cast(Job $job) {
$this
->save($job);
$this->queue
->createItem([
'tag' => $job
->getTag(),
]);
}