Skip to content

Commit a9ffe43

Browse files
committed
fix(helmbroker): rabbitmq sharding err
1 parent 2a7d599 commit a9ffe43

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

rootfs/helmbroker/celery.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
from celery import Celery
33

44

5+
# The queue and exchange names cannot be the same
6+
# otherwise an error will occur when enabling the sharding plugin
57
class Config:
68
# Celery Configuration Options
79
timezone = "Asia/Shanghai"
@@ -18,7 +20,9 @@ class Config:
1820
worker_max_tasks_per_child = 200
1921
result_expires = 24 * 60 * 60
2022
broker_connection_retry_on_startup = True
21-
task_default_queue = 'helmbroker.priority.low'
23+
task_default_queue = 'low'
24+
task_default_exchange = 'helmbroker.priority'
25+
task_default_routing_key = 'helmbroker.priority.low'
2226
worker_cancel_long_running_tasks_on_connection_loss = True
2327

2428

0 commit comments

Comments
 (0)