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, Is There A Way To Get Back The Pipeline Object When Given A Pipeline Id?

hi, is there a way to get back the pipeline object when given a pipeline id?

  
  
Posted one year ago
Votes Newest

Answers 4


Hi PanickyAnt52

hi, is there a way to get back the pipeline object when given a pipeline id?

Yes basically this is a specific type of Task, anything you stored on it can be accessed via the Task object, i.e. pipeline_task=Task.get_task(pipeline_id)
I'm curious, how would you use it?
BTW: since pipeline is also a Task you can have a pipeline launch a step that is a pipeline by its own

  
  
Posted one year ago

Got it, i’d want to get all the tasks that are created by a particular pipeline - either to check on their status or to remove them programmatically

  
  
Posted one year ago

Oh, so the pipeline basically makes itself their parent, this means you can get their IDs:
steps_ids = Task.query_tasks(task_filter=dict(parent=<pipeline_id_here)) for task_id in steps_ids: task = Task.get_task(task_id)

  
  
Posted one year ago

looks good, this is what i’m looking for, thanks

  
  
Posted one year ago