summaryrefslogtreecommitdiffstats
path: root/rest_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_server.py')
-rw-r--r--rest_server.py3
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=[
{