diff options
author | mbeierl <mark.beierl@dell.com> | 2017-06-30 22:30:02 -0400 |
---|---|---|
committer | mbeierl <mark.beierl@dell.com> | 2017-07-04 12:19:47 -0400 |
commit | e7b94bbe52fdb0cdb5a95c5657a2e207580aca86 (patch) | |
tree | 1a1912a4e97e4b93f61863ddaa12f36d8b6c398a /rest_server.py | |
parent | 2c95b01efa53c7e7d4ea7d73fde0da6099938e50 (diff) |
Multi-threaded HTTP Support
Adds multithreaded HTTP request abilities to ReST Server.
Fixes docker-compose to ensure pull prior to up.
Fixes metrics typo to make jobs API query work again.
Change-Id: Ibac6188379cae0489792c5ea80f37dd3abf37082
JIRA: STORPERF-183
Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'rest_server.py')
-rw-r--r-- | rest_server.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rest_server.py b/rest_server.py index dcf6be5..27a8453 100644 --- a/rest_server.py +++ b/rest_server.py @@ -188,8 +188,8 @@ class Job(Resource): def get(self): metrics_type = "metrics" - if request.args.get('metrics_type'): - metrics_type = request.args.get('metrics_type') + if request.args.get('type'): + metrics_type = request.args.get('type') workload_id = request.args.get('id') @@ -338,4 +338,4 @@ if __name__ == "__main__": setup_logging() logging.getLogger("storperf").setLevel(logging.DEBUG) - app.run(host='0.0.0.0', debug=True) + app.run(host='0.0.0.0', debug=True, threaded=True) |