Skip to content

Commit

Permalink
Cleanup Celery queue prefix settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Lukach committed Oct 17, 2017
1 parent 47a97d3 commit 0f7a99c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions cadasta/config/settings/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,3 +573,7 @@
ES_HOST = 'localhost'
ES_PORT = '9200'
ES_MAX_RESULTS = 10000

# Async Tooling
CELERY_BROKER_TRANSPORT = 'sqs' if os.environ.get('SQS') else 'memory'
CELERY_QUEUE_PREFIX = os.environ.get('QUEUE_PREFIX', 'dev')
5 changes: 0 additions & 5 deletions cadasta/config/settings/dev.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
from .default import * # NOQA

DEBUG = True
Expand Down Expand Up @@ -105,7 +104,3 @@
}

ES_PORT = '8000'

# Async Tooling
CELERY_BROKER_TRANSPORT = 'sqs' if os.environ.get('SQS') else 'memory'
CELERY_QUEUE_PREFIX = os.environ.get('QUEUE-PREFIX', 'dev')
2 changes: 1 addition & 1 deletion cadasta/config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@

# Async Tooling
CELERY_BROKER_TRANSPORT = 'sqs'
CELERY_QUEUE_PREFIX = os.environ['QUEUE-PREFIX']
CELERY_QUEUE_PREFIX = os.environ['QUEUE_PREFIX']

0 comments on commit 0f7a99c

Please sign in to comment.