def METHOD_NAME(
    self,
    job_id: str,
    pipeline_name: str,
    repository_name: str,
    repository_location: str,
) -> Optional[DagsterPipeline]:
    """
    Get all the runs details
    """
    try:
        parameters = {
            "handleID": job_id,
            "selector": {
                "pipelineName": pipeline_name,
                "repositoryName": repository_name,
                "repositoryLocationName": repository_location,
            },
        }
        runs = self.client._execute(  # pylint: disable=protected-access
            query=GRAPHQL_RUNS_QUERY, variables=parameters
        )
        runs = PipelineOrErrorModel.parse_obj(runs)
        return runs.pipelineOrError
    except Exception as err:
        logger.debug(traceback.format_exc())
        logger.error(
            f"Error while getting runs for {job_id} - {pipeline_name} - {err}"
        )
    return None