Пример #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)
Пример #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)
Пример #3
0
def delete_from_es(sender, instance, **kwargs):
    doc = instance.to_search()
    es_retry(doc.delete, _ignore_not_found=True)
Пример #4
0
def delete_from_es(sender, instance, **kwargs):
    doc = instance.to_search()
    es_retry(doc.delete, _ignore_not_found=True)
Пример #5
0
def update_es(sender, instance, **kwargs):
    doc = instance.to_search()
    es_retry(doc.save)
Пример #6
0
def update_es(sender, instance, **kwargs):
    doc = instance.to_search()
    es_retry(doc.save)