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! When I Use The

Hello! When I use the TriggerScheduler class with the add_task_trigger function configured to watch for trigger_on_status=['published'] and a specific trigger_project , is it possible to somehow extract the information about the experiment/task of which status has changed? If I can get the name or id it would be enough for me to get the rest of the info.

  
  
Posted 2 years ago
Votes Newest

Answers 3


Hi DangerousDragonfly8

, is it possible to somehow extract the information about the experiment/task of which status has changed?

From the docstring of add_task_trigger
```py def schedule_function(task_id): pass ```This means you are getting the Task ID that caused the trigger, now you can get all the info that you need with Task.get_task(task_id)
def schedule_function(task_id): the_task = Task.get_task(task_id) # now we have all the info on the Task that caused the triggerMake sense ?

  
  
Posted 2 years ago

For a bit more context. Let's say I have 2 experiments in "Project MLOps" called "Exp 1" and "Exp 2". When I publish "Exp 2" I want this trigger to pick up that event and start another task in some other project. But this task would need some information about "Exp 2" like it's name, id or maybe config object etc.

Does the trigger pass any context to the task which will be executed?

  
  
Posted 2 years ago

AgitatedDove14 Thank you for the info. I will try it out.

  
  
Posted 2 years ago
942 Views
3 Answers
2 years ago
one year ago
Tags