Skip to content

Commit

Permalink
Merge pull request #80 from uktrade/feature/resolve-celery
Browse files Browse the repository at this point in the history
chore:set Celery to UTC and fix settings module path.
  • Loading branch information
hareshkainthdbt authored Dec 6, 2024
2 parents bedc6cd + a59963e commit 1dde439
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fbr/config/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from celery.schedules import crontab
from dbt_copilot_python.celery_health_check import healthcheck

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

celery_app = Celery("fbr_celery")

Expand Down
2 changes: 2 additions & 0 deletions fbr/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@
CELERY_TASK_SOFT_TIME_LIMIT = (
270 # Optional: Grace period before forced termination
)
CELERY_TIMEZONE = "UTC"
CELERY_ENABLE_UTC = True

# Internationalisation
LANGUAGE_CODE = "en-gb"
Expand Down

0 comments on commit 1dde439

Please sign in to comment.