'Get schedule details'

@etag
@api.response(200, model=api_schedule_schema)
def get(self, schedule_id, session=None):

    schedules = self.manager.config.get(u'schedules', [])
    if (schedules is True):
        schedules = DEFAULT_SCHEDULES
    elif (schedules is False):
        raise Conflict(u'Schedules    are    disables    in    config')
    (schedule, _) = _schedule_by_id(schedule_id, schedules)
    if (schedule is None):
        raise NotFoundError((u'schedule    %d    not    found' % schedule_id))
    job_id = scheduler_job_map.get(schedule_id)
    if job_id:
        job = scheduler.get_job(job_id)
        if job:
            schedule[u'next_run_time'] = job.next_run_time
    return jsonify(schedule)
