Skip to content

Commit

Permalink
Add celery file for Manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed May 7, 2024
1 parent 187cccc commit fac9241
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions apps/iiif/manifests/celery.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
Celery config for ingest tasks.
"""
import os
from celery import Celery
from django.conf import settings
# import config.settings.local as settings

# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.local')
app = Celery('apps.iiif.manifest', result_extended=True)

# Using a string here means the worker will not have to
# pickle the object when using Windows.
app.config_from_object('django.conf:settings')
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)

0 comments on commit fac9241

Please sign in to comment.