Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Latest commit

 

History

History
51 lines (30 loc) · 1.43 KB

README.md

File metadata and controls

51 lines (30 loc) · 1.43 KB

TYPO3 CMS

Build Status Code Climate

Job Queueing System

Quick Start

Queueing Jobs

/** @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']);

Handler References

Class and method

TYPO3Incubator\Handler\ExampleJobHandler::sleep

Class and static method

TYPO3Incubator\Handler\ExampleJobHandler->sleep

Queue Worker

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

Queue Listener

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