https://dagster.io/ logo
Title
s

Sathish

03/07/2022, 3:25 PM
Hey all, Is there a way to create generic sensor (using job name from email config) to trigger the job from any of the existing repositories. existing repos. <dagster_repo>: Generic sensors repo_1>: Job1, job2,..job10 repo_2>: Job11, job12,..job20
p

prha

03/07/2022, 5:48 PM
There’s an experimental argument to the sensors that enables multi-job sensors (https://docs.dagster.io/_apidocs/schedules-sensors#sensors), but the jobs all have to be in the same repo as the sensor that targets them.
s

Sathish

03/07/2022, 7:29 PM
We have the different repositories in the same workspace. We have a Usecase to create ageneric sensors for all the repositories.We can't do that here?
p

prha

03/07/2022, 8:14 PM
Unfortunately no. You might be able to create a sensor factory that adds the same generic sensor for each repository
s

Sathish

03/08/2022, 4:04 AM
Can you give me a reference code it will be very helpful.