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
Suppose I Use A Pipeline Decorator To Define A Pipeline:

suppose I use a pipeline decorator to define a pipeline:
@PipelineDecorator.pipeline(name='my-pipeline', project='my-project', version='0.2') def my_pipeline_function(...)How do I access the value of project within my_pipeline_function ?

  
  
Posted 2 years ago
Votes Newest

Answers


hi PanickyMoth78
from within your function my_pipeline_function here is how to access the project and task names :

task = Task.current_task()
task_name = task.name
full_project_path = task.get_project_name()
project_name = full_project_path.split('/')[0]

Note that you could also use the full_project_path to get both project and task name
task_name = full_project_name.split('/')[-1]

  
  
Posted 2 years ago
1K Views
1 Answer
2 years ago
one year ago
Tags
Similar posts