Skip to content

Commit

Permalink
Task config
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed May 8, 2024
1 parent 7b8b099 commit 073e21b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/iiif/manifests/tasks.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from celery import Celery
from django.apps import apps
from django.conf import settings

app = Celery('apps.iiif.manifests', result_extended=True)
app.config_from_object('django.conf:settings')
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)

@app.task(name='index_manifest', autoretry_for=(Exception,), retry_backoff=True, max_retries=20)
def index_manifest_task(manifest_id):
Expand Down

0 comments on commit 073e21b

Please sign in to comment.