From 3006085fcb116851510edb7b6015893d6523dbb8 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Mon, 7 Mar 2022 23:45:03 +0200 Subject: [PATCH] Fix task delete response not checked --- clearml/backend_interface/task/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml/backend_interface/task/task.py b/clearml/backend_interface/task/task.py index 4e564041..65f9da9d 100644 --- a/clearml/backend_interface/task/task.py +++ b/clearml/backend_interface/task/task.py @@ -707,7 +707,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin): ] task_deleted = self.send(tasks.DeleteRequest(self.task_id, force=True)) - if not task_deleted: + if not task_deleted.ok(): if raise_on_error: raise self.DeleteError("Failed deleting task {}".format(self.task_id)) self.log.error("Failed deleting task {}".format(self.task_id))