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
I'M Trying To Implement A Cleanup Service By Following This Example

I'm trying to implement a cleanup service by following this example https://github.com/allegroai/clearml/blob/master/examples/services/cleanup/cleanup_service.py
When trying to get the tasks via client.tasks.get_all , no matter what filter parameters I specify, I always get an empty response. One of the simplest filters I have tried is the following (and even so I could not get it to work):
tasks = client.tasks.get_all(project=["myproject"])Is this example outdated? Am I missing something?

  
  
Posted 3 years ago
Votes Newest

Answers 4


resp[0].id should do the trick

  
  
Posted 3 years ago

Hi SuccessfulKoala55
So, how can I get the ID of the requested project through the resp object? I tried with resp["id"] but it didn't work.

  
  
Posted 3 years ago

To obtain the project ID from its name, you can use something like:
resp = client.projects.get_all(only_fields=["id", "name"], name="^examples$")Note the name argument will match as a python regex, so since I want the project whose name is exactly examples I've added ^ and $ (using "examples" will fetch all projects with "examples" in their name)

  
  
Posted 3 years ago

GiganticTurtle0 did you use the project name? The project argument expects a list of project IDs...

  
  
Posted 3 years ago
969 Views
4 Answers
3 years ago
one year ago
Tags