Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
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

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 variable optional, but in UI I see commit hash, how can I get this info from UI? Thanks

  
  
Posted one day ago
Votes Newest

Answers 6


@<1523701070390366208:profile|CostlyOstrich36> Hi, yes, but how can I get commit id in sdk, I checked task.script but there only branch name?

  
  
Posted 23 hours ago

Hi @<1603198163143888896:profile|LonelyKangaroo55> , you can see the commit ID in the execution tab of the experiment.

  
  
Posted 23 hours ago

If you fetch the Task object you can find it in task.data.script.version_num

  
  
Posted 23 hours ago

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?

  
  
Posted 23 hours ago

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?

  
  
Posted 23 hours ago

ok, yes, I used task get_scripts method. without "data", now all good. Thanks

  
  
Posted 23 hours ago