def get_job(uuid): for job in sched.list_jobs(): if job['id'] == uuid: return jsonify(**job), 200 return error('No job with id %s found' % uuid), 404
def list_jobs(): return jsonify(**{ "values": sched.list_jobs() })