def METHOD_NAME(self, raise_warnings=False):
    """
    Method to raise error if failed execution
    and updating Ingestion Pipeline Status
    """
    try:
        self._raise_from_status_internal(raise_warnings)
    except WorkflowExecutionError as err:
        self.set_ingestion_pipeline_status(PipelineState.failed)
        raise err