SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit a02b3933 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Trying (but failing still) with yaml.

parent 6fb24a35
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ from submissions.models import Submission
class AutoSearchIndexingProcessor(signals.RealtimeSignalProcessor):
@app.task(bind=True, name='signalprocessors.remove_object_indexes',
serializer='pickle')
serializer='yaml')
def remove_objects_indexes(self, sender, objects):
"""
Given a set of `objects` model instances, remove them from the index as preparation
......@@ -34,7 +34,7 @@ class AutoSearchIndexingProcessor(signals.RealtimeSignalProcessor):
pass
@app.task(bind=True, name='signalprocessors.update_instance_indexes',
serializer='pickle')
serializer='yaml')
def update_instance_indexes(self, sender, instance):
"""
Given an individual model instance, update its entire indexes.
......
......@@ -61,7 +61,7 @@ six==1.10.0
snowballstemmer==1.2.1
# Scheduled tasks
celery==4.2.1
celery[yaml]==4.2.1
django-celery-results==1.0.1
django-celery-beat==1.1.1
flower==0.9.2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment