Commit ae010685 by Nadeem Shahzad Committed by GitHub

Merge pull request #3849 from edx/nadeem/timeout-rabbitmq-crons

timeout crons
parents 7333a741 3253f692
......@@ -73,3 +73,5 @@ rabbitmq_auth_config:
rabbitmq_plugins:
- rabbitmq_management
rabbitmq_cron_timeout: 5
......@@ -118,7 +118,7 @@
- name: Set up a cron job to run queue script
cron:
name: "log-queue-lenghts"
job: "{{ rabbitmq_app_dir }}/log-rabbitmq-queues.sh >/dev/null 2>&1"
job: /usr/bin/timeout {{ rabbitmq_cron_timeout }} {{ rabbitmq_app_dir }}/log-rabbitmq-queues.sh >/dev/null 2>&1
tags:
- "install"
- "install:app-configuration"
......@@ -127,7 +127,7 @@
- name: Set up a cron job to run the script
cron:
name: "log-rabbitmq-memory-usage"
job: "{{ rabbitmq_app_dir }}/log-rabbitmq-memory.sh >/dev/null 2>&1"
job: /usr/bin/timeout {{ rabbitmq_cron_timeout }} {{ rabbitmq_app_dir }}/log-rabbitmq-memory.sh >/dev/null 2>&1
tags:
- "install"
- "install:app-configuration"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment