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
Should Calling

Should calling Task.init() / task.close() multiple times work? I have some code like this and it seems to dead-lock:
` for lr in [0.001, 0.0001]:
task = clearml.Task.init(project_name="p", task_name="t", reuse_last_task_id=False)
task.set_parameters(learning_rate=lr)

train model ...

task.close() This works on the first iteration of the loop, but the second one seems to get stuck. When I interrupt, it seems it's trying to get a lock in init : File "/opt/homebrew/anaconda3/envs/obelisk-0/lib/python3.9/site-packages/clearml/task.py", line 791, in init
task.set_progress(0)
File "/opt/homebrew/anaconda3/envs/obelisk-0/lib/python3.9/site-packages/clearml/task.py", line 1377, in set_progress
self._set_runtime_properties({"progress": str(progress)})
File "/opt/homebrew/anaconda3/envs/obelisk-0/lib/python3.9/site-packages/clearml/backend_interface/task/task.py", line 2099, in _set_runtime_properties
with self._edit_lock:
File "/opt/homebrew/anaconda3/envs/obelisk-0/lib/python3.9/site-packages/clearml/utilities/locks/utils.py", line 229, in enter
return self.acquire()
File "/opt/homebrew/anaconda3/envs/obelisk-0/lib/python3.9/site-packages/clearml/utilities/locks/utils.py", line 289, in acquire
fh = super(RLock, self).acquire(timeout, check_interval,
File "/opt/homebrew/anaconda3/envs/obelisk-0/lib/python3.9/site-packages/clearml/utilities/locks/utils.py", line 139, in acquire
time.sleep(check_interval) `

  
  
Posted one year ago
Votes Newest

Answers 5


TimelyPenguin76 , MammothGoat53 , I think you shouldn't call Task.init() more than once inside a script

  
  
Posted one year ago

So how should I be creating the second task?

  
  
Posted one year ago

hmm seems to be working now. I don't think I changed anything...

  
  
Posted one year ago

clearml 1.7.2

  
  
Posted one year ago

Hi MammothGoat53 ,

which clearml version are you using? I run the same and all worked as expected (I changed the project_name and the task_name to be 4 chars length)

  
  
Posted one year ago
505 Views
5 Answers
one year ago
one year ago
Tags
Similar posts