Skip to content

Commit

Permalink
Merge pull request #86 from uktrade/feature/resolve-celery
Browse files Browse the repository at this point in the history
Disable Deprecated Pytz Usage and Correct Django Settings Path
  • Loading branch information
hareshkainthdbt authored Dec 6, 2024
2 parents 1991203 + 3a6b09d commit 6a35678
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions fbr/config/celery.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# flake8: noqa

import os

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

from celery import Celery
from celery.schedules import crontab
from dbt_copilot_python.celery_health_check import healthcheck

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

celery_app = Celery("fbr_celery")

celery_app.config_from_object("fbr.config.settings.local", namespace="CELERY")
Expand Down
2 changes: 1 addition & 1 deletion fbr/config/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"cache",
]

USE_DEPRECATED_PYTZ = True
USE_DEPRECATED_PYTZ = False

INSTALLED_APPS = BASE_APPS + INSTALLED_APPS # noqa

0 comments on commit 6a35678

Please sign in to comment.