2017 © Pedro Peláez
 

kohana-module kohana-resque

Kohana wrapper for php-resque with minion support.

image

dexamped/kohana-resque

Kohana wrapper for php-resque with minion support.

  • Wednesday, June 3, 2015
  • by dexamped
  • Repository
  • 2 Watchers
  • 6 Stars
  • 2,983 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

Kohana Resque

A Kohana module for queuing asynchronous tasks though php-resque., (*1)

  1. Installation
  2. Writing Tasks
  3. Use with minion

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, (*2)

composer install --working-dir=modules/kohana-resque/vendor/php-resque

Configuration

Edit application/bootstrap.php and add the module:, (*3)

Kohana::modules(array(
    ...
    'resque' => 'modules/kohana-resque',
    ...
));

Copy the modules/kohana-resque/config/resque.php to APPPATH/config/resque.php and setup your config., (*4)

Running workers

From the shell: ./modules/kohana-resque/resque, (*5)

Writing Tasks

Create a new Task: application/classes/Task/Mytask.php, (*6)

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, (*7)

The Versions

03/06 2015

dev-composer-support

dev-composer-support

Kohana wrapper for php-resque with minion support.

  Sources   Download

BSD-3-Clause

The Requires

 

by Chris

resque kohana

06/12 2013

dev-3.3/master

dev-3.3/master

Kohana wrapper for php-resque with minion support.

  Sources   Download

The Requires

 

by Chris

06/12 2013

1.0

1.0.0.0

Kohana wrapper for php-resque with minion support.

  Sources   Download

The Requires

 

by Chris