You are here

public function JobSchedulerInterface::dispatch in Job Scheduler 8.3

Same name and namespace in other branches
  1. 8.2 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

JobSchedule $job: A $job entity as passed into set() or loaded.

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 93

Class

JobSchedulerInterface
Provides an interface defining a job scheduler manager.

Namespace

Drupal\job_scheduler

Code

public function dispatch(JobSchedule $job);