Created
February 6, 2015 21:49
-
-
Save drydevelopment/5ce79c4731f7a7e952ed to your computer and use it in GitHub Desktop.
CPU Crushing Fix: resque + resque-scheduler + capistrano-resque + newrelic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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