#7 added link to terminate loaded dataset

This commit is contained in:
Alok Saldanha
2019-10-20 20:53:38 -04:00
parent 2f2541d2b1
commit 464ee87305
2 changed files with 15 additions and 1 deletions
+8
View File
@@ -203,6 +203,14 @@ def do_relaunch(path):
match.terminate()
return redirect(url_for("do_view", path=path), code=302)
@app.route("/terminate/<path:path>", methods=["GET"])
def do_terminate(path):
dataset = get_dataset(path)
match = cache.check_entry(dataset)
if not match is None:
match.terminate()
return redirect(url_for("do_GET_status"), code=302)
def main():
logging.basicConfig(level=logging.INFO, format='%(asctime)s:%(name)s:%(levelname)s:%(message)s')