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

Hi all 😁 ! I would like to add a tag to a pipeline built from tasks like in the GitHub example None , but directly in the python code and not in the UI. Does anyone have an idea to make it work πŸ€” ?

  
  
Posted 2 years ago
Votes Newest

Answers 5


meanwhile you can of course do:

pipeline._task.add_tags(tags)
  
  
Posted 2 years ago

MiniatureRobin9

, not the pipeline itself. And that's the last part I'm looking for.

Good point, any chance you want to PR this code snippet ?

    def add_tags(self, tags):
        # type: (Union[Sequence[str], str]) -> None
        """
        Add Tags to this pipeline. Old tags are not deleted. 
        When executing a Pipeline remotely (i.e. launching the pipeline from the UI/enqueuing it), this method has no effect.

        :param tags: A list of tags which describe the Task to add.
        """
        if not self._task:
            return;  # should not actually happen
        self._task.add_tags(tags)
  
  
Posted 2 years ago

Hi CostlyOstrich36 , thank you for your answer, sadly it "only" adds tags to the steps of the pipeline, not the pipeline itself. And that's the last part I'm looking for.

  
  
Posted 2 years ago

Hi MiniatureRobin9 , please take a look at add_pipeline_tags in
None

  
  
Posted 2 years ago

Hi AgitatedDove14 , I added pipeline._task.add_tags(tags) and it works, thank you very much πŸ‘

  
  
Posted 2 years ago
1K Views
5 Answers
2 years ago
2 years ago
Tags
Similar posts