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
Hello! A Python Api - Related Question: Is There A Way To Query The Name Of The Queue A Task Is Running In, From Task Class / By Task Id? Thanks In Advance!

Hello!
A python API - related question:
Is there a way to query the name of the queue a task is running in, from Task class / by task ID?
Thanks in advance!

  
  
Posted one year ago
Votes Newest

Answers 2


CostlyOstrich36 ,
Thank you for providing me with the pointer!

Upon retrieving the Task object instance, the field
that worked for me was
queue_id = task_obj.data.execution.queue

  
  
Posted one year ago

Hi TeenyHamster79 ,

I think the API you're looking for is tasks.get_by_id and the fields you're looking for are:
data.tasks.0.execution.queue.name
data.tasks.0.execution.queue.id

Tell me if it helps 🙂

  
  
Posted one year ago