]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dev/recipes/default.rb
Use amsd instead of hp-ams on Gen10 machines
[chef.git] / cookbooks / dev / recipes / default.rb
index f4fe890ccbec866202387da78f0358da5c431f5a..3a12babae9d53062d15e6460d2ba4785a7c363e1 100644 (file)
@@ -230,10 +230,12 @@ if node[:postgresql][:clusters][:"14/main"]
   systemd_service "rails-jobs@" do
     description "Rails job queue runner"
     type "simple"
+    environment "RAILS_ENV" => "production", "SLEEP_DELAY" => "60"
     user "apis"
     working_directory "/srv/%i.apis.dev.openstreetmap.org/rails"
     exec_start "#{node[:ruby][:bundle]} exec rails jobs:work"
     restart "on-failure"
+    nice 10
     private_tmp true
     private_devices true
     protect_system "full"