You are here

public function Database::deleteJob in Advanced Queue 8

Deletes the job with the given ID.

Parameters

string $job_id: The job ID.

Overrides SupportsDeletingJobsInterface::deleteJob

File

src/Plugin/AdvancedQueue/Backend/Database.php, line 244

Class

Database
Provides the database queue backend.

Namespace

Drupal\advancedqueue\Plugin\AdvancedQueue\Backend

Code

public function deleteJob($job_id) {
  $this->connection
    ->delete('advancedqueue')
    ->condition('job_id', $job_id)
    ->execute();
}