Refactoring part 2

Necessary changes to ensure correct working of eveai_app
This commit is contained in:
Josako
2024-05-06 23:07:45 +02:00
parent 8e5ad5f312
commit 131c609e68
9 changed files with 51 additions and 29 deletions

View File

@@ -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