mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-11 04:30:57 +08:00
#7 added link to terminate loaded dataset
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user