Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Resque extension to identify jobs which significantly increase VM heap size using oink
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.document
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
VERSION
resque-oink.gemspec

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

Something went wrong with that request. Please try again.