public
Created

Delayed Job chef template

  • Download Gist
gistfile1.txt
1 2 3 4 5 6
check process <%= @worker_name %>
with pidfile /data/<%= @app_name %>/shared/pids/delayed_job.<%= @worker_count %>.pid
start program = "/bin/bash -c 'cd /data/<%= @app_name %>/current/;RAILS_ENV=<%= @framework_env %> script/delayed_job start -i <%= @worker_count %>'" with uid deploy and gid deploy with timeout 65 seconds
stop program = "/bin/bash -c 'export RAILS_ENV=<%= @framework_env %>;cd /data/<%= @app_name %>/current/;script/delayed_job stop -i <%= @worker_count %>'"
if totalmem is greater than 240 MB for 2 cycles then restart # eating up memory?
group dj_<%= @app_name %>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.