2017 © Pedro Peláez
 

typo3-flow-package jobqueue-beanstalkd

Implements concrete Queue for the beanstalkd work queue. Requires the packages flowpack/jobqueue-common and pda/pheanstalk package to be installed.

image

typo3/jobqueue-beanstalkd

Implements concrete Queue for the beanstalkd work queue. Requires the packages flowpack/jobqueue-common and pda/pheanstalk package to be installed.

  • Thursday, July 21, 2016
  • by flowpack
  • Repository
  • 8 Watchers
  • 3 Stars
  • 2,766 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

Flowpack.JobQueue.Beanstalkd

A job queue backend for the Flowpack.JobQueue.Common package based on beanstalkd., (*1)

Usage

Install the package using composer:, (*2)

composer require flowpack/jobqueue-beanstalkd

If not already installed, that will fetch its requirements, namely jobqueue-common and pda/pheanstalk. NOTE: This package needs a running beanstalkd server, (*3)

Now the queue can be configured like this:, (*4)

Flowpack:
  JobQueue:
    Common:
      queues:
        'some-queue':
          className: 'Flowpack\JobQueue\Beanstalkd\Queue\BeanstalkdQueue'
          executeIsolated: true
          options:
            client:
              host: 127.0.0.11
              port: 11301
            defaultTimeout: 50
          releaseOptions:
            priority: 512
            delay: 120

Specific options

The BeanstalkdQueue supports following options:, (*5)

Option Type Default Description
defaultTimeout integer 60 Number of seconds new messages are waited for before a timeout occurs (This is overridden by a "timeout" argument in the waitAndTake() and waitAndReserve() methods
client array ['host' => '127.0.0.1', 'port' => 11300] Beanstalkd connection settings

Submit options

Additional options supported by JobManager::queue(), BeanstalkdQueue::submit() and the Job\Defer annotation:, (*6)

Option Type Default Description
delay integer 0 Number of seconds before a message is marked "ready" after submission. This can be useful to prevent premature execution of jobs (i.e. before entites are persisted)
priority integer 1024 Priority of the message. most urgent: 0, least urgent: 4294967295
ttr integer 60 Number of seconds a message is allowed to be reserved before it is released, aborted or finished. NOTE: This option is not available in the releaseOptions!

Release options

Additional options to be specified via releaseOptions:, (*7)

Option Type Default Description
delay integer 0 Number of seconds before a message is marked "ready" after it has been released.
priority integer 1024 Priority of the message. most urgent: 0, least urgent: 4294967295

License

This package is licensed under the MIT license, (*8)

Contributions

Pull-Requests are more than welcome. Make sure to read the Code Of Conduct., (*9)

The Versions

21/07 2016

dev-master

9999999-dev

Implements concrete Queue for the beanstalkd work queue. Requires the packages flowpack/jobqueue-common and pda/pheanstalk package to be installed.

  Sources   Download

MIT

The Requires

 

21/07 2016

1.1.0

1.1.0.0

Implements concrete Queue for the beanstalkd work queue. Requires the packages flowpack/jobqueue-common and pda/pheanstalk package to be installed.

  Sources   Download

MIT

The Requires

 

21/07 2016

2.0.0

2.0.0.0

Implements concrete Queue for the beanstalkd work queue. Requires the packages flowpack/jobqueue-common and pda/pheanstalk package to be installed.

  Sources   Download

MIT

The Requires

 

06/06 2016

0.1.x-dev

0.1.9999999.9999999-dev

Implements concrete Queue for the beanstalkd work queue. Requires the packages flowpack/jobqueue-common and pda/pheanstalk package to be installed.

  Sources   Download

The Requires

 

06/06 2016

1.0.x-dev

1.0.9999999.9999999-dev

Implements concrete Queue for the beanstalkd work queue. Requires the packages flowpack/jobqueue-common and pda/pheanstalk package to be installed.

  Sources   Download

The Requires

 

05/11 2012

1.0.0

1.0.0.0

Implements concrete Queue for the beanstalkd workqueue. Requires the Pheanstalk package to be installed.

  Sources   Download

The Requires