def METHOD_NAME(self, instance):
    # Ensure no errors so far
    if not (all(result["success"]
            for result in instance.context.data["results"])):
        raise PublishXmlValidationError("Publish process has errors")
    if not instance.data["publish"]:
        self.log.warning("No active instances found. "
                         "Skipping submission..")
        return
    super(MayaSubmitRemotePublishDeadline, self).METHOD_NAME(instance)