I may have missed this in instructions but is ther...
# ask-community
j
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
You should now be able to pass a default_status argument to your sensor definition: https://docs.dagster.io/_apidocs/schedules-sensors#sensors
j
Thanks!