0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Provides extra help cap commands for use with Resque, requeuing jobs, mass deleting jobs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
 Project Readme

ResqueUtils

ResqueUtils is a gem that gives you extra helper cap commands for use with Resque.

Requirements

  • Capistrano
  • Resque

Installation

Firstly you'll need to install the gem, if you are using bundler add this to your Gemfile (but make sure it doesn't go in a gem group that isn't being sent to the server)...

gem 'resque_utils'

Open your deploy.rb and simple require the file...

require 'resque_utils/capistrano'

You'll then have the following commands available to you...

cap resque:failed:remove_all       # Remove all failed jobs
cap resque:failed:remove_specific  # Remove specific failed jobs (specify with '--set exception=SomeError')
cap resque:failed:remove_retried   # Remove all retried jobs
cap resque:failed:requeue_all      # Requeue all failed jobs
cap resque:failed:requeue_specific # Requeue specific failed jobs (specify with '--set exception=SomeError')

Obviously you won't want this to run on all your nodes, so make sure to filter to the node you want when you run it...

HOSTFILTER=resque.somedomain.com cap resque:failed:remove_all

To run the specific commands, for example to requeue any job that failed with the exception SomeError...

cap resque:failed:requeue_specific --set exception=SomeError

You could also do something like this, although i'd really not recommend it...

before 'deploy:symlink', 'resque:failed:remove_all'