mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 13:12:24 +00:00
Optimize the naming of setting params (#410)
This commit is contained in:
@@ -54,6 +54,7 @@ class TaskSettings(BaseSettings):
|
||||
}
|
||||
|
||||
@model_validator(mode='before')
|
||||
@classmethod
|
||||
def validate_celery_broker(cls, values):
|
||||
if values['ENVIRONMENT'] == 'pro':
|
||||
values['CELERY_BROKER'] = 'rabbitmq'
|
||||
|
||||
Reference in New Issue
Block a user