0.0
No commit activity in last 3 years
No release in over 3 years
Resque extension to identify jobs which significantly increase VM heap size using oink
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 1.8.4
>= 0
~> 3.12
~> 2.8.0

Runtime

>= 0
 Project Readme

resque-oink

If using bundler, add to Gemfile:

gem 'resque-oink'

Or in Rails 2.3 land, add to config/environment.rb:

config.gem 'resque-oink'

Now, you can extend your job with Resque::Plugins::Oink. Following the resque Archive example.

class Archive
  extend Resque::Plugins::Oink

  @queue = :file_serve

  def self.perform(repo_id, branch = 'master')
    repo = Repository.find(repo_id)
    repo.create_archive(branch)
  end
end   

Copyright

Unless otherwise specified, all content copyright © 2014, Rails Machine, LLC