MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / abort_task

Method abort_task

botasaurus_api/botasaurus_api/__init__.py:268–280  ·  view source on GitHub ↗

Aborts a specific task. :param task_id: The ID of the task to abort. :return: A success message.

(self, task_id)

Source from the content-addressed store, hash-verified

266 return content, filename
267
268 def abort_task(self, task_id):
269 """
270 Aborts a specific task.
271
272 :param task_id: The ID of the task to abort.
273 :return: A success message.
274 """
275 url = self._make_api_url(f"api/tasks/{task_id}/abort")
276 response = requests.patch(url)
277 _raise_for_status(response)
278 response_data = response.json()
279 self._write_json("abort_task", response_data) # Call write_json with method name
280 return response_data
281
282
283 def delete_task(self, task_id):

Callers

nothing calls this directly

Calls 3

_make_api_urlMethod · 0.95
_write_jsonMethod · 0.95
_raise_for_statusFunction · 0.85

Tested by

no test coverage detected