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 e199550..0918a91 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]