/** @var QueueManager $queueManager */
$queueManager = $this->objectManager->get(\TYPO3Incubator\Jobqueue\QueueManager::class);
/** @var \TYPO3Incubator\Jobqueue\Frontend\Queue $queueFrontend */
$queueFrontend = $queueManager->get('default');
$queueFrontend->setQueue('queuename')
->queue('handlerRef', ['data' => 'forHandler']);
Class and method
TYPO3Incubator\Handler\ExampleJobHandler::sleep
Class and static method
TYPO3Incubator\Handler\ExampleJobHandler->sleep
typo3/sysext/core/bin/typo3 jobqueue:work --mode=s backend queuename
For the example above that would be:
typo3/sysext/core/bin/typo3 jobqueue:work --mode=s default queuename
Further information
typo3/sysext/core/bin/typo3 help jobqueue:work
typo3/sysext/core/bin/typo3 jobqueue:listen --limit=5 --graceful-shutdown backend queuename
For the example above that would be:
typo3/sysext/core/bin/typo3 jobqueue:listen --limit=5 --graceful-shutdown default queuename
Further information
typo3/sysext/core/bin/typo3 help jobqueue:listen