Example #1
0
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
Example #2
0
def list_jobs():
    return jsonify(**{
                        "values": sched.list_jobs()
                     })