Skip to content

Commit

Permalink
Clowder: properly update clearml id when running same clowder investi…
Browse files Browse the repository at this point in the history
…gation from different users
  • Loading branch information
Enkidu93 committed May 10, 2024
1 parent 1fbe518 commit 17d0f13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clowder/investigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 17d0f13

Please sign in to comment.