Hey all, Is there a way to create generic sensor (...
# ask-community
s
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
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
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
Unfortunately no. You might be able to create a sensor factory that adds the same generic sensor for each repository
s
Can you give me a reference code it will be very helpful.