Example #1
0
def update_es(sender, instance, **kwargs):
    doc = instance.to_search()
    print(doc)
    print("last_fetch", instance.last_fetch)
    if instance.error or not instance.last_fetch:
        es_retry(doc.delete, _ignore_not_found=True)
    else:
        es_retry(doc.save)
Example #2
0
def update_es(sender, instance, **kwargs):
    doc = instance.to_search()
    print(doc)
    print("last_fetch", instance.last_fetch)
    if instance.error or not instance.last_fetch:
        es_retry(doc.delete, _ignore_not_found=True)
    else:
        es_retry(doc.save)
Example #3
0
def delete_from_es(sender, instance, **kwargs):
    doc = instance.to_search()
    es_retry(doc.delete, _ignore_not_found=True)
Example #4
0
def delete_from_es(sender, instance, **kwargs):
    doc = instance.to_search()
    es_retry(doc.delete, _ignore_not_found=True)
Example #5
0
def update_es(sender, instance, **kwargs):
    doc = instance.to_search()
    es_retry(doc.save)
Example #6
0
def update_es(sender, instance, **kwargs):
    doc = instance.to_search()
    es_retry(doc.save)