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
Clearml 1.3.2 I'M Running

ClearML 1.3.2
I'm running Task.get_tasks(project_name=...) and suddenly I get
2022-04-07 10:28:43,617 - clearml.Task - ERROR - Failed reloading task c2d514f3bf8d436fa5705407039a469b 2022-04-07 10:28:43,617 - clearml.Task - ERROR - Failed reloading task c2d514f3bf8d436fa5705407039a469b ... File ".../.venv/lib/python3.9/site-packages/clearml/task.py", line 859, in get_tasks File ".../.venv/lib/python3.9/site-packages/clearml/task.py", line 3595, in __get_tasks File ".../.venv/lib/python3.9/site-packages/clearml/task.py", line 3595, in <listcomp> File ".../.venv/lib/python3.9/site-packages/clearml/task.py", line 171, in __init__ File ".../.venv/lib/python3.9/site-packages/clearml/backend_interface/task/task.py", line 178, in __init__ ValueError: Task ID "c2d514f3bf8d436fa5705407039a469b" could not be foundBut:
That task ID exists, and anyway it should be reloaded (no .init call)... Anything to check?

  
  
Posted 2 years ago
Votes Newest

Answers 11


UnevenDolphin73 , can you provide a small snippet of exactly what you were running? Are you certain you can see the task in the UI? Is it archived?

  
  
Posted 2 years ago

I'm not sure why internally ClearML tries to initialize a task when get_task is called...

  
  
Posted 2 years ago

I can see the task in the UI, it is not archived, and that's pretty much the snippet, but in full I do e.g.

  
  
Posted 2 years ago

UnevenDolphin73 , how can you tell that ClearML is trying to initialize a task when get_task is called?

  
  
Posted 2 years ago

From the traceback ( backend_interface/task/task.py, line 178, in __init__ ), notice it's not Task.init

  
  
Posted 2 years ago

Can you add a print out to verify that you selected the correct project?

  
  
Posted 2 years ago

~20

  
  
Posted 2 years ago

It's a small snippet that ensures identically named projects are still unique'd with a running number.

  
  
Posted 2 years ago

How many tasks do you figure this thing is iterating through the project?

  
  
Posted 2 years ago

I have selected the correct project indeed

  
  
Posted 2 years ago

proj_suffix = "" i = 2 while Task.get_project_id(f"{proj_name}{proj_suffix}") is not None: tasks = Task.get_tasks(project_name=f"{proj_name}{proj_suffix}") if not [task for task in tasks if not task.get_archived()]: # Empty project, we can use this one... break proj_suffix = f"_{i}" i += 1

  
  
Posted 2 years ago