https://dagster.io/ logo
Title
r

Rodrigo Schammass

10/22/2021, 12:40 PM
Hi everyone. I am very new with Dagster and I would like to know if we can connect a job to another job?
r

raaid

10/22/2021, 3:02 PM
You can trigger a run from another one using sensors; I yield AssetMaterializations at the end of certain jobs, and I have AssetSensors that watch for the creation of said assets. If the sensor sees a new one, it yields a RunRequest for a job. So that's one way to do it
I believe you can do it without using Assets but I haven't done it that way so can't speak to it very well
r

Rodrigo Schammass

10/22/2021, 3:25 PM
thank you very much raaid. I appreciated so much your help. have a wonderful weekend
r

raaid

10/22/2021, 3:36 PM
yeah no prob! here are the relevant docs if it is helpful: https://docs.dagster.io/concepts/partitions-schedules-sensors/sensors#overview
r

Rodrigo Schammass

10/22/2021, 4:34 PM
thanks
y

yuhan

05/27/2022, 8:54 AM
Hi folks, here’s some example code snippets for a similar use case in this GitHub discussion. Please feel free to comment or leave your answer on it as well.