Sha256: 1c10114d5b18f11a2b4451724b5121ba4197510031ae4e1c4c65d8737dcf6b7b

Contents?: true

Size: 750 Bytes

Versions: 6

Compression:

Stored size: 750 Bytes

Contents

<%# ((scripts.webapp.params.has_key?(:resque_queues) && scripts.webapp.params.resque_queues.presence) || {"ALL_QUEUES" => 1 }).each_pair do |queue_name,num_of_workers|%>
<%#1.upto(num_of_workers)  do |num|%>
check process resque_scheduler
  with pidfile <%= scripts.webapp.app_path%>/tmp/pids/resque_scheduler.pid
  start program = "/bin/bash -c 'cd <%= scripts.webapp.app_path%>; RAILS_ENV=<%= scripts.webapp.params.rails_env%> script/resque_scheduler'"  with timeout 120 seconds
  stop program = "/bin/bash -c 'cd <%= scripts.webapp.app_path%> && kill -s QUIT `cat tmp/pids/resque_scheduler.pid` && rm -f tmp/pids/resque_scheduler.pid; exit 0;'"
  if totalmem is greater than 300 MB for 10 cycles then restart
  group resque

<%# end %>
<%# end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
standup-0.6.9 scripts/resque_scheduler/resque_scheduler_monit.conf
standup-0.6.8 scripts/resque_scheduler/resque_scheduler_monit.conf
standup-0.6.7 scripts/resque_scheduler/resque_scheduler_monit.conf
standup-0.6.6 scripts/resque_scheduler/resque_scheduler_monit.conf
standup-0.6.5 scripts/resque_scheduler/resque_scheduler_monit.conf
standup-0.6.4 scripts/resque_scheduler/resque_scheduler_monit.conf