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
Hi All, Please Tell Me How To Get Its Own Task In The Task Executed By Enqueue. I'M Trying To Get It With

Hi all,
Please tell me how to get its own task in the task executed by Enqueue.
I'm trying to get it with Task.current_task() , but I get None.
The reason I want to get my own task is to get CONFIGRATION OBJECTS from my task and process it.

  
  
Posted one year ago
Votes Newest

Answers 4


Hi TimelyMouse69 , Thank you for your reply.
It was done with Task.running_locally() .
Thank you very much.

  
  
Posted one year ago

Hi TimelyMouse69 , Thank you for your reply.
Requires Task.init() .
Thank you very much.

I would like to ask you one more thing.

Is there a way to determine if it was launched with Enqueue before Task.init() .
1.When starting with Enqueue, get the task with Task.init() .
2. If not started with Enqueue, create a new task with Task.init(project_name=XXX,task_name=XXX) .

  
  
Posted one year ago

Did you first init the Task?
https://clear.ml/docs/latest/docs/references/sdk/task/

  
  
Posted one year ago