The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Resque::Failures - Class for managing Resque failures

VERSION

version 0.13

ATTRIBUTES

resque

Accessor to the Resque object.

failure_class

Name of a class consuming the role 'Resque::Failure'. By default: Resque::Failure::Redis

METHODS

throw

create() a failure on the failure_class() and save() it.

create

Create a new failure on the failure_class() backend.

count

How many failures was in all the resque system.

all

Return a range of failures in the same way Resque::peek() does for jobs.

clear

Remove all failures.

requeue

Requeue by index number.

Failure will be updated to note retried date.

remove

Remove failure by index number in failures queue.

Please note that, when you remove some index, all sucesive ones will move left, so index will decrese one. If you want to remove several ones start removing from the rightmost one.

AUTHOR

Diego Kuperman <diego@freekeylabs.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Diego Kuperman.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.