def get_schedule(self, name, flow):
    """Get schedule information.

    :param name: Project name.
    :param flow: Name of flow in project.

    """
    self._logger.debug(
      'Retrieving schedule for project %s workflow %s.', flow, name
    )
    res = _extract_json(self._request(
      method='GET',
      endpoint='schedule',
      params={
        'ajax': 'fetchSchedule',
        'projectId': self._get_project_id(name),
        'flowId': flow,
      },
    ))
    self._logger.info(
      'Retrieved schedule for project %s workflow %s.', name, flow
    )
    if 'schedule' not in res:
      raise AzkabanError(
        'Failed to get schedule. Check that the schedule exists.'
      )
    return res['schedule']
dataset/ETHPy150Open mtth/azkaban/azkaban/remote.py/Session.get_schedule/original