Skip to content

Commit

Permalink
Disable Celery event queue (#264)
Browse files Browse the repository at this point in the history
* Expose RabbitMQ management UI

* Disable unused celery events
  • Loading branch information
c-w authored Dec 22, 2019
1 parent 6bdf9a3 commit 991d98c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ APPINSIGHTS_PORT=8888
APPINSIGHTS_INSTRUMENTATIONKEY=a314c6f7-776c-4e82-a677-8a3ecfb4669f

FLOWER_PORT=5555
RABBITMQ_PORT=5556
RABBITMQ_USER=ascoderu
RABBITMQ_PASSWORD=123456
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ services:
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
ports:
- ${RABBITMQ_PORT}:15672

appinsights:
image: cwolff/appinsights-on-premises:0.1.2-postgres
Expand Down
3 changes: 3 additions & 0 deletions docker/app/run-celery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ fi
"${PY_ENV}/bin/celery" \
--app="opwen_email_server.integration.celery" \
worker \
--without-gossip \
--without-heartbeat \
--without-mingle \
--concurrency="${QUEUE_WORKERS}" \
--loglevel="${LOKOLE_LOG_LEVEL}" \
--queues="${CELERY_QUEUE_NAMES}"

0 comments on commit 991d98c

Please sign in to comment.