'Mark down that we are reindexing.'

@classmethod
def flag_reindexing(cls, alias, old_index, new_index):

    if cls.is_reindexing():
        return
    return cls.objects.create(alias=alias, old_index=old_index, new_index=new_index)
