Skip to content

Commit

Permalink
[FIX] Fixed celery postgres connection (#2961)
Browse files Browse the repository at this point in the history
Fixed celery postgres connection
  • Loading branch information
simensma-fresh authored Feb 22, 2024
1 parent 016d42c commit f244189
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/core-api/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def JWT_ROLE_CALLBACK(jwt_dict):
'https://mines-permitting-issuer-a3e512-dev.apps.silver.devops.gov.bc.ca/')
VCR_ISSUER_SECRET_KEY = os.environ.get('VCR_ISSUER_SECRET_KEY', 'super-secret-key')


# Common Services
COMMON_SERVICES_CLIENT_ID = os.environ.get('COMMON_SERVICES_CLIENT_ID')
COMMON_SERVICES_CLIENT_SECRET = os.environ.get('COMMON_SERVICES_CLIENT_SECRET')
Expand All @@ -245,7 +246,7 @@ def JWT_ROLE_CALLBACK(jwt_dict):
TEMPLATE_IRT = os.environ.get('TEMPLATE_IRT', 'IRT_Template.xlsx')

# Celery settings
CELERY_RESULT_BACKEND = f'db+postgres://{DB_USER}:{DB_PASS}@{DB_HOST}:{DB_PORT}/{DB_NAME}'
CELERY_RESULT_BACKEND = f'db+postgresql://{DB_USER}:{DB_PASS}@{DB_HOST}:{DB_PORT}/{DB_NAME}'
CELERY_BROKER_URL = f'redis://:{CACHE_REDIS_PASS}@{CACHE_REDIS_HOST}:{CACHE_REDIS_PORT}'
CELERY_READBEAT_BROKER_URL = f'{CELERY_BROKER_URL}'
CELERY_DEFAULT_QUEUE = 'core_tasks'
Expand Down

0 comments on commit f244189

Please sign in to comment.