public function Sleepy::process in Advanced Queue 8
Processes the given job.
Parameters
\Drupal\advancedqueue\Job $job: The job.
Return value
\Drupal\advancedqueue\JobResult The job result.
Overrides JobTypeInterface::process
File
- tests/
modules/ advancedqueue_test/ src/ Plugin/ AdvancedQueue/ JobType/ Sleepy.php, line 22
Class
- Sleepy
- Sleepy job type.
Namespace
Drupal\advancedqueue_test\Plugin\AdvancedQueue\JobTypeCode
public function process(Job $job) {
sleep(1);
return JobResult::success();
}