Commit 41e1dd00 authored by Zachary Seguin's avatar Zachary Seguin

Update sample config

parent 1f4a340d
......@@ -48,10 +48,29 @@ NAAD_CAPCP_HOSTNAME = 'capcp2.naad-adna.pelmorex.com'
# Database
SQLALCHEMY_DATABASE_URI = 'sqlite:///../alerts.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
# Celery
BROKER_URL = 'amqp://guest@localhost//'
BROKER_USE_SSL=True
BROKER_URL = 'redis://:foobard@localhost:6379/0'
from kombu import Queue
CELERY_DEFAULT_QUEUE = 'alerts_canada'
CELERY_DEFAULT_ROUTING_KEY = 'alerts_canada'
CELERY_QUEUES = (
Queue('alerts_canada', routing_key='alerts_canada'),
Queue('ac_fetch', routing_key='ac_fetch')
)
CELERY_ROUTES = {
'pyalertscanada.tasks.process_alert.fetch_alert_from_reference': {
'queue': 'ac_fetch',
'routing_key': 'ac_fetch'
},
'pyalertscanada.tasks.process_alert.fetch_alert_from_url': {
'queue': 'ac_fetch',
'routing_key': 'ac_fetch'
}
}
CELERY_MAX_CONCURRENCY = 4
CELERY_LOG_LEVEL = 'info'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment