Merge pull request #1208 from cincodenada/fix-import-page

Add backend parameter to Celery initializer
This commit is contained in:
Mouse Reeve 2021-07-03 06:42:47 -07:00 committed by GitHub
commit 2e9ac1bf27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,5 @@ from bookwyrm import settings
# set the default Django settings module for the 'celery' program. # set the default Django settings module for the 'celery' program.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "celerywyrm.settings") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "celerywyrm.settings")
app = Celery( app = Celery(
"tasks", "tasks", broker=settings.CELERY_BROKER, backend=settings.CELERY_RESULT_BACKEND
broker=settings.CELERY_BROKER,
) )