From e94d7fcfa97729cf05254588c2b21df4f03d865f Mon Sep 17 00:00:00 2001 From: clearml <> Date: Tue, 31 Dec 2024 22:08:59 +0200 Subject: [PATCH] Fix old events deletion for re-imported tasks --- apiserver/mongo/initialize/pre_populate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/mongo/initialize/pre_populate.py b/apiserver/mongo/initialize/pre_populate.py index 3c063af..0cc6fdc 100644 --- a/apiserver/mongo/initialize/pre_populate.py +++ b/apiserver/mongo/initialize/pre_populate.py @@ -1171,7 +1171,7 @@ class PrePopulate: if isinstance(doc, cls.task_cls): tasks.append(doc) - cls.event_bll.delete_task_events(company_id, doc.id) + cls.event_bll.delete_task_events(company_id, doc.id, wait_for_delete=True) if tasks: return tasks