Commit d75f4b6f authored by Oleg Sukhoroslov's avatar Oleg Sukhoroslov

Added support for deleting jobs by job/app name

parent ebbdd32a
......@@ -128,6 +128,14 @@ class Session:
r.raise_for_status()
print("Deleted job " + job_id)
def deleteJobs(self, name):
r = self.session.delete(
self.endpoint + '/api/jobs?name=' + name
)
debug_request(r)
r.raise_for_status()
print("Deleted jobs by name " + name)
def __uploadFile(self, file):
r = self.session.post(
self.endpoint + '/api/files/temp',
......
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