@receiver(SignalHandler.library_updated)
def listen_for_library_update(sender, library_key, **kwargs):
 if LibrarySearchIndexer.indexing_is_enabled():
  from .tasks import update_library_index
  update_library_index.delay(unicode(library_key), datetime.now(UTC).isoformat())

@ receiver ( SignalHandler . library_updated ) def listen_for_library_update ( sender , library_key , ** kwargs ) : if LibrarySearchIndexer . indexing_is_enabled ( ) : from . tasks import update_library_index update_library_index . delay ( unicode ( library_key ) , datetime . now ( UTC ) . isoformat ( ) )
receives signal and kicks off celery task to update search index .