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 one year ago
Votes Newest

Answers 5


meanwhile you can of course do:

pipeline._task.add_tags(tags)
  
  
Posted one year ago

Hi @<1523701070390366208:profile|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 one year ago

Hi @<1546303293918023680:profile|MiniatureRobin9> , please take a look at add_pipeline_tags in
None

  
  
Posted one year ago

@<1546303293918023680:profile|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 one year ago

Hi @<1523701205467926528:profile|AgitatedDove14> , I added pipeline._task.add_tags(tags) and it works, thank you very much 👍

  
  
Posted one year ago
1K Views
5 Answers
one year ago
one year ago
Tags
Similar posts