https://dagster.io/ logo
Title
a

Artem Dobryy

10/28/2022, 1:43 PM
Hi! can anyone help? i want to trigger run_status_sensor when all previous jobs succeeds, ie job A succeed AND job B succeed -> job C execute
j

jamie

10/28/2022, 3:30 PM
Hi @Artem Dobryy! currently the run status sensors operate like OR conditions (they trigger a run when any of the monitored jobs succeeds). However you should be able to write a custom sensor that will do what you want It will be slightly more complicated though as you will need to query the dagster instance to get the status of the jobs and do some cursor management to ensure that you don’t trigger a run request for the same set of successful jobs. If you’d like to go down this route, I can point you to some examples and help explain what you’ll need to do, but also feel free to open a GH issue to request the feature you’d like