def METHOD_NAME(self, retval, task_id, args, kwargs):
    if settings.METRICS_ENABLED:
        pretix_task_runs_total.inc(1, task_name=self.name, status="success")
    return super().METHOD_NAME(retval, task_id, args, kwargs)