dexamped/kohana-resque
最新稳定版本:1.0
Composer 安装命令:
composer require dexamped/kohana-resque
包简介
Kohana wrapper for php-resque with minion support.
README 文档
README
A Kohana module for queuing asynchronous tasks though php-resque.
Installation
Install the module
git submodule add git@github.com:dexamped/kohana-resque.git modules/kohana-resque
git submodule update --init --recursive
Load dependencies
We have to load vendor's dependencies by running composer install
composer install --working-dir=modules/kohana-resque/vendor/php-resque
Configuration
Edit application/bootstrap.php and add the module:
Kohana::modules(array(
...
'resque' => 'modules/kohana-resque',
...
));
Copy the modules/kohana-resque/config/resque.php to APPPATH/config/resque.php and setup your config.
Running workers
From the shell: ./modules/kohana-resque/resque
Writing Tasks
Create a new Task: application/classes/Task/Mytask.php
class Task_Test extends Task_Resque { protected $_queue = 'myqueuename'; public function perform() { echo "Executing a task!\n"; } } // End Task_Test
Use with Minion
Documentation coming
统计信息
- 总下载量: 4.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-05-21