Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 799 Bytes

README.pod

File metadata and controls

43 lines (25 loc) · 799 Bytes

Perl-Resque

A Perl port of Resque ( https://github.com/defunkt/resque )

Dependencies

Redis ( http://redis.io )

Installation

cpanm https://github.com/andyjones/perl-resque/tarball/master

Usage

Start some workers

use Resque;
my $worker = Resque->new_worker( { queues => ['are','optional'] } );
$worker->work();

Add some jobs

use Resque;
my $client = Resque->new_client();
$client->push('Queuename', 'MyClass', ['arg1', 'arg2', 'etc']);
 

Perform asynchronous tasks

package MyClass;

sub perform {
  my $class = shift;
  my @args = @_;
  
  # do something
  
}

Monitoring

Resque ( Ruby ) includes a nice front end which works just as well with Perl-Resque see https://github.com/defunkt/resque for more information