Michel Rouly08/18/2022, 4:46 PM
) and a few Sensors (e.g.
). When we create our Repository, we apply Graphs to Resources at the last minute to return Jobs. We can have Sensors track Jobs if we use the Sensor factory pattern, but this makes our Repository definition pretty awkward -- you can no longer just loop over all the Graphs and apply them to Resources. You need to pull out specific Graphs, convert them to Jobs, and pass them into specific Sensors. We'd like our Sensors to track the Graphs (
parameter) but when we do this, we run into the following error:
UserWarning: Error loading repository location repo.py:datahub:dagster._core.errors.DagsterInvalidDefinitionError: sensor 'redash_sensor' targets graph 'ingest_redash', but a different job with the same name was provided. Disambiguate between these by providing a separate name to one of them.
sandy08/18/2022, 4:47 PM
Michel Rouly08/18/2022, 4:50 PM
, is that the same thing? Or maybe I'm on an old version of Dagster?
works great for us, but it's marked as deprecated. If
works similarly, that sounds like a way forwards.