diff options
| author | Alexander Kabui | 2025-01-11 08:33:51 +0300 |
|---|---|---|
| committer | GitHub | 2025-01-11 08:33:51 +0300 |
| commit | e501df4458080cd4a39f3124c7e13dacd9d9f28a (patch) | |
| tree | 6556b96aece75fddf563753b5e089a6608fbd88c /gn3/api/rqtl2.py | |
| parent | 677d68c4b56585b29227efb9821ca674951411ca (diff) | |
| parent | 200deff652bfae364d6e15ff2bceefdc1686f158 (diff) | |
| download | genenetwork3-e501df4458080cd4a39f3124c7e13dacd9d9f28a.tar.gz | |
Merge pull request #206 from genenetwork/enhancements/streaming-modularization
Enhancements/streaming modularization
Diffstat (limited to 'gn3/api/rqtl2.py')
| -rw-r--r-- | gn3/api/rqtl2.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gn3/api/rqtl2.py b/gn3/api/rqtl2.py index a6ac411..e26b9ed 100644 --- a/gn3/api/rqtl2.py +++ b/gn3/api/rqtl2.py @@ -45,19 +45,3 @@ def compute(): return jsonify({"msg": "fail", "error": "Process failed", "run_id": run_id}) - - -@rqtl2.route("/stream/<identifier>", methods=["GET"]) -def stream(identifier="output"): - """ This endpoints streams stdout from a file expects - the indetifier to be the file """ - output_file = os.path.join(current_app.config.get("TMPDIR"), - f"{identifier}.txt") - seek_position = int(request.args.get("peak", 0)) - with open(output_file, encoding="utf-8") as file_handler: - # read to the last position default to 0 - file_handler.seek(seek_position) - results = {"data": file_handler.readlines(), - "run_id": identifier, - "pointer": file_handler.tell()} - return jsonify(results) |
