https://dagster.io/ logo
#announcements
Title
# announcements
s

Steve Pletcher

03/01/2021, 4:01 PM
hey everyone! i'm trying to use dagster to poll another service of ours to kick off a pipeline when a pipeline in the other service completes. this seems like what sensors are designed for, but i'd like to set things up such that our production dagster only polls the production env of the other service, and likewise for our dev environment for dagster. sensors don't seem to support environment config, based on the docs. am i missing something, or is this just not what sensors are meant to do?
j

johann

03/01/2021, 4:10 PM
Hi @Steve Pletcher, that’s correct that sensors don’t currently accept config from Dagster. One way to achieve something like that would be just with env vars. See https://github.com/dagster-io/dagster/blob/5c5e8e0f878b319b1d54b4aa6a6b8e1309f8b521/python_modules/dagster-test/dagster_test/toys/sensors.py#L7[…]00, which gets it’s s3 bucket from an env var.
2 Views