public function JobSchedulerInterface::dispatch in Job Scheduler 8.2
Same name and namespace in other branches
- 8.3 src/JobSchedulerInterface.php \Drupal\job_scheduler\JobSchedulerInterface::dispatch()
Dispatches a job.
Executes a worker callback or if schedule declares a queue name, queues a job for execution.
Parameters
array $job: A $job array as passed into set() or read from job_schedule table.
Throws
\Exception Exceptions thrown by code called by this method are passed on.
1 method overrides JobSchedulerInterface::dispatch()
- JobScheduler::dispatch in src/
JobScheduler.php - Dispatches a job.
File
- src/
JobSchedulerInterface.php, line 91
Class
- JobSchedulerInterface
- Provides an interface defining a job scheduler manager.
Namespace
Drupal\job_schedulerCode
public function dispatch(array $job);