examples/god.rb in backburner-0.4.6 vs examples/god.rb in backburner-1.0.0
- old
+ new
@@ -2,11 +2,11 @@
w.name = "backburner-worker-1"
w.dir = '/path/to/app/dir'
w.env = { 'PADRINO_ENV' => 'production', 'QUEUES' => 'newsletter-sender,push-message' }
w.group = 'backburner-workers'
w.interval = 30.seconds
- w.start = "bundle exec rake -f Rakefile backburner:start"
+ w.start = "bundle exec rake -f Rakefile backburner:work"
w.log = "/var/log/god/backburner-worker-1.log"
# restart if memory gets too high
w.transition(:up, :restart) do |on|
on.condition(:memory_usage) do |c|
@@ -41,6 +41,6 @@
w.transition(:up, :start) do |on|
on.condition(:process_running) do |c|
c.running = false
end
end
-end
\ No newline at end of file
+end