def refresh(cls, index='default'): process.send(None) cls.es.indices.refresh(settings.ES_INDEXES[index])
def refresh(cls, index='default', timesleep=0): process.send(None) cls.es.indices.refresh(settings.ES_INDEXES[index])
def send(cls): # Send all the ES tasks on hold. process.send(None)