Gallery-Archivist/backend/core/celery.py
2025-01-23 22:52:48 +01:00

11 lines
269 B
Python

import os
from celery import Celery
# from celery.schedules import crontab
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
app = Celery("Gallery Archivis")
app.config_from_object("django.conf:settings", namespace="CELERY")
app.autodiscover_tasks()