Skip to content

Commit fdec8f1

Browse files
committed
🐛 RabbitMQ: set consumer_timeout to undefined
Add an `advanced.config` to disable the consumer timeout, preventing long-running AiiDA tasks from being dropped by RabbitMQ. Disable the RabbitMQ version warning in the AiiDA config.
1 parent 0e72fd5 commit fdec8f1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

local/tasks/aiida-profile.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
--db-username {{ parameters.db_username | quote }} \
4141
--db-password {{ parameters.db_password | quote }}
4242
43+
- name: "Disable RabbitMQ version warning for profile '{{ profile_name }}'"
44+
ansible.builtin.command: >-
45+
{{ aiida_run_verdi }} -p {{ profile_name }} config set warnings.rabbitmq_version False
46+
4347
- name: "Enable AiiDA daemon service for profile '{{ profile_name }}'"
4448
when: daemon_service is defined and daemon_service
4549
block:

local/tasks/rabbitmq.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@
1515
regexp: ExecStop=/usr/sbin/rabbitmqctl stop
1616
line: ExecStop=/usr/sbin/rabbitmqctl shutdown
1717

18+
- name: Configure RabbitMQ consumer timeout
19+
ansible.builtin.copy:
20+
dest: /etc/rabbitmq/advanced.config
21+
content: |
22+
[
23+
{rabbit, [
24+
{consumer_timeout, undefined}
25+
]}
26+
].
27+
mode: "0644"
28+
1829
- name: Start RabbitMQ service (systemd)
1930
ansible.builtin.service:
2031
name: "rabbitmq-server"

0 commit comments

Comments
 (0)