public function BackendInterface::enqueueJob in Advanced Queue 8
Enqueues the given job.
The job will be modified with the assigned queue ID, job ID, and relevant timestamps.
Parameters
\Drupal\advancedqueue\Job $job: The job.
int $delay: The time, in seconds, after which the job will become available to consumers. Defaults to 0, indicating no delay.
1 method overrides BackendInterface::enqueueJob()
- Database::enqueueJob in src/
Plugin/ AdvancedQueue/ Backend/ Database.php - Enqueues the given job.
File
- src/
Plugin/ AdvancedQueue/ Backend/ BackendInterface.php, line 79
Class
- BackendInterface
- Provides the interface for queue backends.
Namespace
Drupal\advancedqueue\Plugin\AdvancedQueue\BackendCode
public function enqueueJob(Job $job, $delay = 0);