denton
02/23/2024, 9:05 AMScout
02/23/2024, 9:05 AM@sensor
decorator, and they run according to their specified interval. If you want to control the activation of a sensor based on certain conditions, you would need to implement the logic within the sensor's evaluation function to decide whether to yield a run request or not. This doesn't turn off the sensor but can prevent it from triggering pipeline runs. If you need to disable the sensor entirely, you would typically do this manually through the Dagster UI or via the Dagster GraphQL API. The documentation does not provide a method for automatically disabling the sensor based on logic within the sensor's evaluation function. For more advanced use cases, you might consider implementing custom logic outside of Dagster that interacts with the Dagster instance to enable or disable sensors as needed, possibly using the GraphQL API to programmatically control the sensor's state. If you have a specific scenario or logic in mind, I can provide more targeted advice or suggest alternative approaches.sims
03/29/2024, 4:20 AM