Exemplo n.º 1
0
def submit():
    options = request.form
    j_id = Job.create(options)
    return jsonify(jobid=str(j_id),
                   qsize=Job.queue_size())
Exemplo n.º 2
0
def index():
    return render_template('index.html',
                           queue_size=Job.queue_size())