SciPaperLoader/celery_worker.py
2025-04-16 16:32:52 +02:00

9 lines
312 B
Python

from scipaperloader.celery import celery, configure_celery
# Import all task modules to ensure they are registered with Celery
import scipaperloader.blueprints.scraper # Import the scraper module with our tasks
# Configure celery with Flask app
configure_celery()
if __name__ == '__main__':
celery.start()