Skip to content

TYPO3incubator/jobqueue

Repository files navigation

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

About

TYPO3 CMS 8 Job Queue Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published