20 lines
545 B
Python
20 lines
545 B
Python
"""
|
|
Entrypoint du worker ARQ — traitement des images en arrière-plan.
|
|
|
|
Lancer avec : python worker.py
|
|
|
|
Le worker écoute les queues Redis 'standard' et 'premium' et traite
|
|
les tâches de pipeline image (EXIF → OCR → AI).
|
|
"""
|
|
import asyncio
|
|
from arq import run_worker
|
|
from app.config import settings
|
|
from app.logging_config import configure_logging
|
|
from app.workers.image_worker import WorkerSettings
|
|
|
|
# Configure le logging dès l'import
|
|
configure_logging(debug=settings.DEBUG)
|
|
|
|
if __name__ == "__main__" :
|
|
run_worker(WorkerSettings)
|