]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/recipes/rails.rb
Restrict queue runners on the main site to the mailers queue
[chef.git] / cookbooks / web / recipes / rails.rb
index b11da462bc9a10db1e84f8ee22d4c00e583431a9..1ab7bc1da25343a4d4eb68c6ee90adfb87c8fe94 100644 (file)
@@ -94,8 +94,13 @@ rails_port "www.openstreetmap.org" do
 end
 
 systemd_service "rails-jobs" do
 end
 
 systemd_service "rails-jobs" do
+  action :delete
+end
+
+systemd_service "rails-jobs@" do
   description "Rails job queue runner"
   type "simple"
   description "Rails job queue runner"
   type "simple"
+  environment "QUEUE" => "%I"
   user "rails"
   working_directory rails_directory
   exec_start "/usr/local/bin/bundle#{ruby_version} exec rake jobs:work"
   user "rails"
   working_directory rails_directory
   exec_start "/usr/local/bin/bundle#{ruby_version} exec rake jobs:work"