Unanswered
Hi All, I Want To Ask, How I Can Get Commit Id From Compiled Task. I Tried Get_Script Method In Task Class, But There Only Info About Branch (I Think Because I Used Latest Commit In Branch), From Code I Understood That Commit == Version_Num In Task.Script
This is what I just tested now for a task with a commit in the webUI:
from clearml import Task
task = Task.get_task(task_id="<TASK_ID>")
print(task.data.script.version_num)
This returned the commit ID I see in the webUI.
Are you sure there is a commit ID in the UI? Are you sure you're fetching the correct task?
1 Views
0
Answers
one day ago
15 hours ago