Skip to content

Commit

Permalink
Merge pull request #218 from consul/monitor_delayed_job
Browse files Browse the repository at this point in the history
Restart DelayedJob workers after they crash
  • Loading branch information
javierm authored Jul 6, 2023
2 parents eb03f9d + c1424c3 commit 8bf41ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/queue/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: Start DelayedJobs queue
shell: "source /home/{{ deploy_user }}/.rvm/scripts/rvm && RAILS_ENV={{ env }} bin/delayed_job -n 2 restart"
shell: "source /home/{{ deploy_user }}/.rvm/scripts/rvm && RAILS_ENV={{ env }} bin/delayed_job -m -n 2 restart"
args:
executable: /bin/bash
chdir: "{{ release_dir }}"

0 comments on commit 8bf41ca

Please sign in to comment.