Commit c7f5f338 authored by Oleksiy Mishchenko's avatar Oleksiy Mishchenko
Browse files

RAPI: Cancel a job

Reviewed-by: imsnah
parent 00430f8e
......@@ -77,6 +77,14 @@ class R_2_jobs_id(baserlib.R_Generic):
result = luxi.Client().QueryJobs([job_id, ], fields)[0]
return baserlib.MapFields(fields, result)
def DELETE(self):
"""Cancel not-yet-started job.
"""
job_id = self.items[0]
result = luxi.Client().CancelJob(job_id)
return result
class R_2_nodes(baserlib.R_Generic):
"""/2/nodes resource.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment