Aborts a specific task. :param task_id: The ID of the task to abort. :return: A success message.
(self, task_id)
| 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): |
nothing calls this directly
no test coverage detected