addons-server/lib/es/signals.py

7 строки
225 B
Python

from django.dispatch import Signal
# This resets the messages that were going to go to ES.
reset = Signal(providing_args=[])
# This sends all the messages to ES and then resets the queue.
process = Signal(providing_args=[])