-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to use AMQP again, but with CloudAMQP's settings. (#823)
I originally tried using AMQP in #819 but this used an exorbitant number of messages. However, I just found a CloudAMQP post about running Celery which includes some settings that reduce the number of messages processed by RabbitMQ. Given the fact that our current broker, AWS SQS, is labeled as "experimental" in some places and might not be very reliable, we're switching back to AMQP, but with vastly lower message use.
- Loading branch information
Showing
5 changed files
with
47 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
# Remember to set JUSTFIX_CELERY_BROKER_URL in your .justfix-env | ||
# when using this file! | ||
version: '2' | ||
services: | ||
app: | ||
environment: | ||
- JUSTFIX_CELERY_BROKER_URL=amqp://rabbitmq | ||
links: | ||
- db | ||
- rabbitmq | ||
rabbitmq: | ||
image: rabbitmq:3.7.17-alpine | ||
celery: | ||
extends: | ||
file: docker-services.yml | ||
service: base_app | ||
environment: | ||
- JUSTFIX_CELERY_BROKER_URL=amqp://rabbitmq | ||
volumes: | ||
- .:/tenants2:delegated | ||
links: | ||
- db | ||
- rabbitmq | ||
command: python manage.py runcelery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters