Fix old events deletion for re-imported tasks

This commit is contained in:
clearml 2024-12-31 22:08:59 +02:00
parent fa3727c5fc
commit e94d7fcfa9

View File

@ -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