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'M Using

Hi. I'm using @PipelineDecorator.component to define a task from a function (to run in a pipeline)
I'd like to get the task object within this function so that I can do things like my_currently_running_task.connect_configuration(..)
How do I get the task that is running my function?

Also - is pipeline also a task? If so, how do I do the same (get handle to my pipeline task) in my pipeline code? (I use @PipelineDecorator.pipeline to define my pipeline)

  
  
Posted 2 years ago
Votes Newest

Answers 2


task=Task.current_task()
Will get me the task object. (right?)

PanickyMoth78 yes, always, from anywhere, this is a singleton object 🙂

  
  
Posted 2 years ago

For component
task=Task.current_task()Will get me the task object. (right?)
This does not work for pipeline. Is pipeline a task?
Edit: The same works for pipeline

  
  
Posted 2 years ago
986 Views
2 Answers
2 years ago
one year ago
Tags
Similar posts