Refactoring part 2
Necessary changes to ensure correct working of eveai_app
This commit is contained in:
@@ -46,24 +46,11 @@ class Config(object):
|
||||
|
||||
# Celery settings
|
||||
CELERY_TASK_SERIALIZER = 'json'
|
||||
CELERY_RESULT_SERIALIZER = 'json'
|
||||
CELERY_ACCEPT_CONTENT = ['json']
|
||||
CELERY_TIMEZONE = 'UTC'
|
||||
CELERY_ENABLE_UTC = True
|
||||
|
||||
# Define multiple queues
|
||||
CELERY_TASK_QUEUES = {
|
||||
'embeddings': {
|
||||
'exchange': 'embeddings',
|
||||
'routing_key': 'embeddings.key',
|
||||
'queue_arguments': {'x-max-priority': 10}
|
||||
},
|
||||
'llm_interactions': {
|
||||
'exchange': 'llm_interactions',
|
||||
'routing_key': 'llm_interactions.key',
|
||||
'queue_arguments': {'x-max-priority': 5}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class DevConfig(Config):
|
||||
DEVELOPMENT = True
|
||||
|
||||
Reference in New Issue
Block a user