Skip to content

railsmachine/resque-oink

Repository files navigation

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

About

Resque extension to identify jobs which significantly increase VM heap size using oink

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages