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
Hello Clearml Ppl I Have A Question, Is There A Way To Filter Tasks And Get Only The Ones That Has

Hello clearml ppl
I have a question, is there a way to filter Tasks and get only the ones that has status="Running" ?

I have tried both with Task.get_tasks() and with APIClient.tasks.get_all() and with both "running" or "Running", and I get an error:
` task_list = Task.get_tasks(task_filter={"status" : ["running"]})

ValueError: 'running' is not a valid TaskStatusEnum I am using a self hosted clearml server with clearml==1.0.5 clearml-agent==1.1.0 `

  
  
Posted 2 years ago
Votes Newest

Answers 5


I usually use: https://clear.ml/docs/latest/docs/references/api/index
Also, it's quite useful to use the UI as a reference. You can hit F12 in the browser and you can see all the api calls, I use that to figure out call structure

  
  
Posted 2 years ago

thanks a lot! natan, really useful!

  
  
Posted 2 years ago

Thanks a lot Natan 🙂 ,

Is there a file or a piece of documentation where I can see the fields and arguments I can apply when I am using task_filter ?

  
  
Posted 2 years ago

Hi! The status is in_progress from backend perspective. Please try like that 🙂

  
  
Posted 2 years ago

By the way, I don't suggest ever using the _ex suffix on any of the apicalls you see in UI, it's reserved for UI and can cause unintended results in automations

  
  
Posted 2 years ago
1K Views
5 Answers
2 years ago
one year ago
Tags
Similar posts