diff --git a/clowder/investigation.py b/clowder/investigation.py index 36f3c641..7f2fe228 100644 --- a/clowder/investigation.py +++ b/clowder/investigation.py @@ -206,6 +206,8 @@ def sync(self, gather_results=True, copy_all_results_to_gdrive: bool = True): remote_meta_content["experiments"][name] = {} remote_meta_content["experiments"][name]["results_already_gathered"] = False if self.experiments[name]["clearml_id"] != "unknown": + if remote_meta_content["experiments"][name].get("clearml_id", None) != self.experiments[name]["clearml_id"]: + task = Task.get_task(task_id=remote_meta_content["experiments"][name]["clearml_id"]) remote_meta_content["experiments"][name]["clearml_id"] = task.id remote_meta_content["experiments"][name][ "clearml_task_url"