Added redispatch button and fixed typo in load balancing code

This commit is contained in:
Simon
2018-06-24 10:07:46 -04:00
parent 1ac510ff53
commit a6d753c6ee
6 changed files with 66 additions and 4 deletions

View File

@@ -90,6 +90,14 @@ def get_task_logs():
return Response(json_str, mimetype="application/json")
@app.route("/task/pop_all")
@auth.login_required
def pop_queued_tasks():
json_str = json.dumps([task.to_json() for task in tm.pop_tasks()])
return Response(json_str, mimetype="application/json")
@app.route("/stats/")
@auth.login_required
def get_stats():