Skip to content

Instantly share code, notes, and snippets.

@adamrunner
Created January 15, 2013 22:58
Show Gist options
  • Save adamrunner/4542968 to your computer and use it in GitHub Desktop.
Save adamrunner/4542968 to your computer and use it in GitHub Desktop.
working resque.rake file for newrelic_rpm
# load the Rails app all the time
require "resque/tasks"
require "resque_scheduler/tasks"
require "newrelic_rpm"
ENV["NEWRELIC_ENABLE"] = "true"
task "resque:setup" => :environment do
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection; NewRelic::Agent.manual_start :license_key=>"04bba1b0698194f36a96c319818b19818b614af00a955e", :app_name => "Background Workers" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment