Resque extension to identify jobs which significantly increase VM heap size using oink
Ruby
Switch branches/tags
Nothing to show
Latest commit 1591621 May 2, 2014 @ShepBook ShepBook Update README.md

README.md

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