Commit 7e2c45d
committed
fix: Switch from Azure Service Bus to RabbitMQ for task queue
Azure Service Bus is incompatible with Kombu 5.x used by Celery 5.3.6.
All versions of azure-servicebus 7.x have breaking module structure changes
that prevent Kombu from connecting, causing production worker failures.
Changes:
- Remove hardcoded LOKOLE_QUEUE_BROKER_SCHEME=azureservicebus from docker-compose.prod.yml
- Add RabbitMQ service (rabbitmq:management-alpine) to production compose
- Worker now depends on RabbitMQ service
- Add URL encoding for broker credentials to handle special characters (/, =, +)
- Add rabbitmq_data volume for queue persistence
- Uses existing credentials (LOKOLE_EMAIL_SERVER_QUEUES_SAS_NAME/KEY) for RabbitMQ auth
Production setup:
Add these two lines to secrets/azure.env:
LOKOLE_QUEUE_BROKER_SCHEME=amqp
LOKOLE_EMAIL_SERVER_QUEUES_NAMESPACE=rabbitmq
This fixes the production worker failures with TypeError and RuntimeError
when trying to connect to Azure Service Bus.1 parent 45bb3b5 commit 7e2c45d
2 files changed
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
69 | 74 | | |
70 | 75 | | |
0 commit comments