Beanstalkd Queue

Centum\Queue\BeanstalkdQueue provides a simple, focused frontend for Beanstalkd, a fast and lightweight queue service. Internally, it uses Pheanstalk to communicate with a Beanstalkd server.

Constructor

Centum\Queue\BeanstalkdQueue(
    Centum\Interfaces\Queue\TaskRunnerInterface $taskRunner,
    Pheanstalk\Contract\PheanstalkPublisherInterface $pheanstalkPublisher,
    Pheanstalk\Contract\PheanstalkSubscriberInterface $pheanstalkSubscriber
);

Tube

It uses the centum-tasks tube to store Tasks (accessible via Centum\Queue\BeanstalkdQueue::TUBE).

Task Lifecycle

Tasks have 10 minutes to complete before Beanstalkd will release them and allow them to be run again.