https://dagster.io/ logo
Title
j

John Cenzano-Fong

03/09/2022, 1:55 AM
I may have missed this in instructions but is there a way to define in code that you want a sensor turned on immediately? I had created a sensor to send PagerDuty alerts for any jobs that fail, but I failed to go to the UI to turn it on. It took me a while to figure out that was the problem. I’d like to avoid that in the future for other sensors by controlling that in code if possible. Is there a way to do that?
p

prha

03/09/2022, 3:05 AM
You should now be able to pass a default_status argument to your sensor definition: https://docs.dagster.io/_apidocs/schedules-sensors#sensors
j

John Cenzano-Fong

03/10/2022, 6:36 PM
Thanks!