hotpocket/services/backend/hotpocket_backend/celery.py
Tomek Wójcik b4338e2769
Some checks failed
CI / Checks (push) Failing after 13m2s
Release v1.0.0
2025-08-20 21:00:50 +02:00

18 lines
333 B
Python

# -*- coding: utf-8 -*-
from __future__ import annotations
import os
import celery
os.environ.setdefault(
'DJANGO_SETTINGS_MODULE', 'hotpocket_backend.settings.base',
)
app: celery.Celery = celery.Celery(
'hotpocket_backend',
)
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()