A driver for Queue Manager Bundle that uses beanstalkd
The beanstalk runner is a Symfony command. You can runner multiple instances if you need to handle higher numbers of jobs.
./bin/console mcfedr:queue:{name}-runner
Where {name}
is what you used in the config. Add -v
or more to get detailed logs.
php composer.phar require mcfedr/beanstalk-queue-driver-bundle
Include the bundle in your AppKernel
public function registerBundles()
{
$bundles = array(
...
new Mcfedr\BeanstalkQueueDriverBundle\McfedrBeanstalkQueueDriverBundle(),
With this bundle installed you can setup your queue manager config similar to this:
mcfedr_queue_manager:
managers:
default:
driver: beanstalkd
options:
host: 127.0.0.1
port: 11300
default_queue: mcfedr_queue
queue
- The name of the queue to put the job inpriority
- The job priorityttr
- Beanstalk Time to run, the time given for a job to finish before it is repeatedtime
- A\DateTime
object of when to schedule this jobdelay
- Number of seconds from now to schedule this job