diff options
author | Mark Beierl <mark.beierl@dell.com> | 2016-11-22 15:45:17 -0500 |
---|---|---|
committer | Mark Beierl <mark.beierl@dell.com> | 2016-11-23 10:54:26 -0500 |
commit | def8cbb9d7e45060512594b6e3c89bf2db3cced7 (patch) | |
tree | 98fe2dc368657f257f45fa3ece7814a1294bf975 /rest_server.py | |
parent | 677d8f93db164ac7fb15811d5ce1e1a0eee30160 (diff) |
Ability to query job status
Provide a method to query the status of a job by id
Change-Id: I4d3567995e7c7c3359596346009358276e79d65c
JIRA: STORPERF-89
Signed-off-by: Mark Beierl <mark.beierl@dell.com>
Diffstat (limited to 'rest_server.py')
-rw-r--r-- | rest_server.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rest_server.py b/rest_server.py index 2b5bbfb..d852bbb 100644 --- a/rest_server.py +++ b/rest_server.py @@ -287,6 +287,9 @@ class Job(Resource): if type == "metadata": return jsonify(storperf.fetch_metadata(workload_id)) + if type == "status": + return jsonify({"Status": storperf.fetch_job_status(workload_id)}) + @swagger.operation( parameters=[ { |