ok, yes, I used task get_scripts method. without "data", now all good. Thanks
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?
there no version_num in dict, I think this is optional argument, but in UI I see commit id. how I can query from sdk this value from UI or maybe there other method?
If you fetch the Task object you can find it in task.data.script.version_num
@<1523701070390366208:profile|CostlyOstrich36> Hi, yes, but how can I get commit id in sdk, I checked task.script but there only branch name?
Hi @<1603198163143888896:profile|LonelyKangaroo55> , you can see the commit ID in the execution tab of the experiment.