You are here

public function Database::onSuccess in Advanced Queue 8

Called when a job has been successfully processed.

Parameters

\Drupal\advancedqueue\Job $job: The job.

Overrides BackendInterface::onSuccess

File

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

Class

Database
Provides the database queue backend.

Namespace

Drupal\advancedqueue\Plugin\AdvancedQueue\Backend

Code

public function onSuccess(Job $job) {
  $job
    ->setProcessedTime($this->time
    ->getCurrentTime());
  $this
    ->updateJob($job);
}