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\BackendCode
public function onSuccess(Job $job) {
$job
->setProcessedTime($this->time
->getCurrentTime());
$this
->updateJob($job);
}