示例#1
0
文件: rest.py 项目: szaydel/jobsched
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
示例#2
0
文件: rest.py 项目: szaydel/jobsched
def list_jobs():
    return jsonify(**{
                        "values": sched.list_jobs()
                     })