]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/recipes/rails.rb
oxidized: add accounts dependency
[chef.git] / cookbooks / web / recipes / rails.rb
index 4cc91d2b44da24b1ce28b013990f7c2ecf5e9d54..e021f19251e045d141592bfe56ecfb7665dabddc 100644 (file)
@@ -152,7 +152,7 @@ end
 systemd_service "rails-jobs@" do
   description "Rails job queue runner"
   type "simple"
-  environment "RAILS_ENV" => "production", "QUEUE" => "%I"
+  environment "RAILS_ENV" => "production", "QUEUE" => "%I", "SLEEP_DELAY" => "60"
   user "rails"
   working_directory rails_directory
   exec_start "#{node[:ruby][:bundle]} exec rails jobs:work"