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, I Am Running A Pipeline (Which Does Preprocessing And Training) ? Once Training Ends, I Want To Automatically Publish The Task (Model). Reading The Docs, I Tried This Approach Below. I Wrote A

Hi, I am running a pipeline (which does preprocessing and training) ? Once training ends, I want to automatically publish the task (model). Reading the docs, I tried this approach below.
I wrote a
def step_completed_callback(pipeline,node): Task.get_task(node.base_task_id).publish() print(f'publish task\t{node.base_task_id}')

  
  
Posted 2 years ago
Votes Newest

Answers 6


image

  
  
Posted 2 years ago

image

  
  
Posted 2 years ago

AgitatedDove14
Just figured it out..
node.base_task_id is the base task, which will always be in draft mode, Instead we should use the node.executed which references the current executed node.

  
  
Posted 2 years ago

Hi DeliciousBluewhale87
Yes that should have worked, can you verify the task status ?
Print(Task.get_task(...).get_status())

  
  
Posted 2 years ago

DeliciousBluewhale87

node.base_task_id

 is the base task, which will always be in draft mode, Instead we should use the 

node.executed

 which references the current executed node.

YES, maybe we should add that into the example, so it is clearer ? WDYT?

  
  
Posted 2 years ago

More than the documentation, my main issue was that naming executed is far too vague.. Maybe something like executed_task_id or something along that line is more appropriate. 👍

  
  
Posted 2 years ago
707 Views
6 Answers
2 years ago
26 days ago
Tags