mirror of
https://github.com/deunix-educ/Fail2banMqttActionBanishment.git
synced 2026-08-24 03:11:58 +02:00
11 lines
316 B
Python
11 lines
316 B
Python
"""App Celery : tâches asynchrones (géolocalisation) hors du chemin d'ingestion MQTT."""
|
|
import os
|
|
|
|
from celery import Celery
|
|
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.dev')
|
|
|
|
app = Celery('config')
|
|
app.config_from_object('django.conf:settings', namespace='CELERY')
|
|
app.autodiscover_tasks()
|