@classmethod
    def set_progress(cls, task, current, total):
        try:
            if task:
                task.update_state(state='PROGRESS', meta={'current': current, 'total': total})
        except (__HOLE__, NotImplementedError):
            pass
        except IntegrityError:
            # Not called in task context just pass
            pass
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/soil/__init__.py/DownloadBase.set_progress