示例#1
0
文件: run.py 项目: jittat/hcr-web
def submit():
    options = request.form
    j_id = Job.create(options)
    return jsonify(jobid=str(j_id),
                   qsize=Job.queue_size())
示例#2
0
文件: run.py 项目: jittat/hcr-web
def index():
    return render_template('index.html',
                           queue_size=Job.queue_size())