def check_xform_es_index(interval=10):
    try:
        doc_id, doc_rev = get_last_change_for_doc_class(XFormInstance)
    except __HOLE__:
        return None
    time.sleep(interval)
    return _check_es_rev(XFORM_INDEX, doc_id, [doc_rev])
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/hqadmin/escheck.py/check_xform_es_index