def METHOD_NAME(cls, instance):
    model_name = type(instance).__name__
    try:
        deletion = cls.objects.get(
            model_name=model_name, object_id=instance.pk, in_progress=False
        )
    except cls.DoesNotExist:
        delete_logger.info(
            "object.delete.canceled.failed",
            extra={"object_id": instance.pk, "model": model_name},
        )
        return
    deletion.delete()
    delete_logger.info(
        "object.delete.canceled",
        extra={"object_id": instance.pk, "model": model_name},
    )