fobilow/queuezilla
最新稳定版本:1.0.0
Composer 安装命令:
composer require fobilow/queuezilla
包简介
Framework for consuming MYSQL Queues
关键字:
README 文档
README
QueueZilla is a simple framework that enables you to write MySQL queue consumers quickly and neatly. It enforces key methods via an interface so you can write clean code
Installation
Run composer require fobilow/queuezilla 1.* or add "fobilow/queuezilla" :"1.*" to your composer.json.
Usage
You will need to create a consumer class that extends the MySQLQueueConsumer e.g MyConsumer and implement the following methods
- getLockedJob();
- getNewJob();
- doJob();
- completeJob();
- takeABreak()
Then in your CLI script or calling script you call it like this
use QueueZilla\Framework\Queue\MySQLQueueConsumer; $queueConsumer = new MyConsumer(); $queueConsumer->setProcessId('someId'); //maybe a combination of hostname $queueConsumer->consume();
Contributing
If you find a bug or want to improve the code in any way, please submit a pull request
Failing that, just create an issue with the bug you have found, and I'll take it from there :)
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-05-01