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
Another Question, How Can I Close A Task With A Specified Status? I Know I Am Able To Do Task.Close() But This Doesn'T Let Me Control The Task'S Status And I Want To Determine It

Another question, how can I close a Task with a specified status? I know I am able to do task.close() but this doesn't let me control the task's status and I want to determine it

  
  
Posted 2 years ago
Votes Newest

Answers 9


TimelyPenguin76
Wouldn't
task.mark_failed() task.close()Work?

  
  
Posted 2 years ago

Great, thanks

  
  
Posted 2 years ago

Or should the task.close appear before the task.mark_failed?

  
  
Posted 2 years ago

Yes it should

  
  
Posted 2 years ago

Yes, fail it and then close it

  
  
Posted 2 years ago

ImmensePenguin78 I think you can get it with the APIClient , you can add force to the call:
` from clearml import Task
from clearml.backend_api.session.client import APIClient

api_client = APIClient()
t = Task.init(project_name="Your project", task_name="Your task name")

t.close()
api_client.tasks.failed(t.id, force=True, status_reason="Your status reason", status_message="Your status message") `

  
  
Posted 2 years ago

Hi ImmensePenguin78 - what status are you looking for?

  
  
Posted 2 years ago

Hi SuccessfulKoala55 ,
failed. I read in the docs I can use mark_failed .
How should I use it correctly with task.close()?

  
  
Posted 2 years ago

Are you talking about failing a task from it's own code?

  
  
Posted 2 years ago
515 Views
9 Answers
2 years ago
one year ago
Tags