Skip to content

Commit

Permalink
Merge pull request #79 from uktrade/feature/resolve-celery
Browse files Browse the repository at this point in the history
chore:update Celery config to use Django settings
  • Loading branch information
hareshkainthdbt authored Dec 5, 2024
2 parents f7d6e92 + 01dfdd5 commit bedc6cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fbr/config/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
from celery.schedules import crontab
from dbt_copilot_python.celery_health_check import healthcheck

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.local")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "fbr.config.settings.local")

celery_app = Celery("fbr_celery")

# Configure the app using the local settings module
celery_app.config_from_object("fbr.config.settings.local", namespace="CELERY")
celery_app.config_from_object("django.conf:settings", namespace="CELERY")

celery_app.autodiscover_tasks()

Expand Down

0 comments on commit bedc6cd

Please sign in to comment.