Skip to content

Commit

Permalink
fix: allow change name for worker in god
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskorobicyn committed Oct 26, 2015
1 parent b203b13 commit cf350d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/integration/god.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ God.terminate_timeout = <%= terminate_timeout.to_i %>
<% worker.count.times do |i| %>
God.watch do |w|
w.dir = rails_root
w.name = 'resque-<%= worker.queue %>-<%= i %>'
w.name = 'resque-<%= worker.name || worker.queue %>-<%= i %>'
w.group = 'resque'
w.interval = 30.seconds
w.env = <%= Resque.config.env.merge(worker.env).merge(:RAILS_ENV => ::Rails.env, :BUNDLE_GEMFILE => "#{root}/Gemfile").stringify_keys! %>
Expand Down

0 comments on commit cf350d2

Please sign in to comment.