MCPcopy Index your code
hub / github.com/aptly-dev/aptly / delete_task

Method delete_task

system/api_lib.py:138–148  ·  view source on GitHub ↗
(self, uri, *args, **kwargs)

Source from the content-addressed store, hash-verified

136 return requests.delete("http://%s%s" % (self.base_url, uri), *args, **kwargs)
137
138 def delete_task(self, uri, *args, **kwargs):
139 self._ensure_async(kwargs)
140 resp = self.delete(uri, *args, **kwargs)
141 if resp.status_code != 202:
142 return resp
143
144 _id = resp.json()['ID']
145 resp = self.get("/api/tasks/" + str(_id) + "/wait")
146 self.check_equal(resp.status_code, 200)
147
148 return self.get("/api/tasks/" + str(_id))
149
150 def upload(self, uri, *filenames, **kwargs):
151 upload_name = kwargs.pop("upload_name", None)

Callers 15

checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80

Calls 4

_ensure_asyncMethod · 0.95
deleteMethod · 0.95
getMethod · 0.95
check_equalMethod · 0.80

Tested by

no test coverage detected