Skip to content

Instantly share code, notes, and snippets.

@drydevelopment
Created February 6, 2015 21:49
Show Gist options
  • Save drydevelopment/5ce79c4731f7a7e952ed to your computer and use it in GitHub Desktop.
Save drydevelopment/5ce79c4731f7a7e952ed to your computer and use it in GitHub Desktop.
CPU Crushing Fix: resque + resque-scheduler + capistrano-resque + newrelic
# The resque-scheduler process would not respond to `kill -s QUIT [pid]`, and
# after a long time diagnosing the problem I found that the source of the problem
# was Newrelic. YAY! Disabling newrelic
task :disable_newrelic do
set :bundle_cmd, "NEWRELIC_ENABLE=false #{bundle_cmd}"
end
before "resque:start", "disable_newrelic"
before "resque:scheduler:start", "disable_newrelic"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment