]> git.openstreetmap.org Git - chef.git/commitdiff
Run job processors for the storage queue
authorTom Hughes <tom@compton.nu>
Mon, 15 Jul 2019 21:22:28 +0000 (22:22 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 15 Jul 2019 21:22:28 +0000 (22:22 +0100)
cookbooks/web/recipes/backend.rb

index e1995500cd2859d42bab41be5ee4b2c8e9785420..0918a9123d4f656adbd69b645bb37ce65749741e 100644 (file)
@@ -42,6 +42,13 @@ end
 
 node.normal[:memcached][:ip_address] = node.internal_ipaddress
 
+service "rails-jobs@storage" do
+  action [:enable, :start]
+  supports :restart => true
+  subscribes :restart, "rails_port[www.openstreetmap.org]"
+  subscribes :restart, "systemd_service[rails-jobs]"
+end
+
 if node[:web][:primary_cluster]
   service "rails-jobs@traces" do
     action [:enable, :start]