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
Seems Like Clearml Tasks In Offline Mode Cannot Be Properly Closed, We Get

Seems like ClearML tasks in offline mode cannot be properly closed, we get ValueError: Unsupported keyword arguments: publish when calling task.close() .
This stems from self.mark_completed() , which attempts to communicate with the backend I assume (even though there is none, since it’s offline mode?)
In turn, this simply does not reach the code where it sets the __main_task to None .

I get e.g.

ClearML Task: Offline session stored in /Users/idan/.clearml/cache/offline/offline-4e2ad0100d114e7ba95cc0a6dcf48f76.zip
Retrying, previous request failed <class 'clearml.backend_api.services.v2_9.projects.GetAllRequest'>: 'Session' object has no attribute '_Session__access_key'

Notice that the API version is set to v2_9 because there is no backend (offline execution) πŸ˜•

  
  
Posted 2 years ago
Votes Newest

Answers 4


I opened a GH issue shortly after posting here. FrothyDog40 replied (hoping I tagged the right person).

We need to close the task. This is part of our unittests for a framework built on top of ClearML, so every test creates and closes a task.

  
  
Posted 2 years ago

That is a clear bug to me. Can you please open a GH issue?

  
  
Posted 2 years ago

Hi UnevenDolphin73 , looping in SmugDolphin23 & SuccessfulKoala55 for visibility πŸ™‚

  
  
Posted 2 years ago

Also, do you need to close the task? It will close automatically when the program exits

  
  
Posted 2 years ago
1K Views
4 Answers
2 years ago
2 years ago
Tags