AgitatedDove14 Thank you for the info. I will try it out.
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?
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 trigger
Make sense ?