flowpack / jobqueue-beanstalkd
实现了对beanstalkd工作队列的特定队列实现。需要安装flowpack/jobqueue-common和pda/pheanstalk包。
4.0.1
2018-06-23 06:41 UTC
Requires
- flowpack/jobqueue-common: ^3.0 || dev-master
- pda/pheanstalk: 3.0.*
README
基于Flowpack.JobQueue.Common包和beanstalkd实现的作业队列后端。
用法
使用composer安装此包
composer require flowpack/jobqueue-beanstalkd
如果尚未安装,它将检索其依赖项,即jobqueue-common
和pda/pheanstalk
。 注意:此包需要一个运行的beanstalkd服务器
现在队列可以配置如下
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
特定选项
BeanstalkdQueue
支持以下选项
提交选项
JobManager::queue()
、BeanstalkdQueue::submit()
和Job\Defer
注解支持的附加选项
释放选项
通过releaseOptions
指定的附加选项
许可证
此包根据MIT许可证授权
贡献
欢迎提交拉取请求。请确保阅读行为准则。