https://dagster.io/ logo
#ask-community
Title
# ask-community
a

Arun Kumar

05/06/2022, 1:21 AM
Hi team, in our repository we dynamically create sensors based on the state of a DB. As the DB state changes, some of the sensors become obsolete and I see the following warning with a list unloadable sensors and I need to manually disable them. Is there any other way I can automatically clear/disable these sensors?
d

daniel

05/06/2022, 1:24 AM
hey arun - if you set your sensors like this:
Copy code
@sensor(job=your_job, default_status=DefaultSensorStatus.RUNNING)
so that the sensor starts out as running as soon as its defined, i think this warning will go away once they no longer exist (plus you won't need to manually turn them on anymore)
a

Arun Kumar

05/06/2022, 1:30 AM
Ah cool, will give it a try. Thanks Daniel
4 Views