Hi there! Is there a way to configure a sensor so ...
# ask-community
m
Hi there! Is there a way to configure a sensor so it does not run more than one tick at a time? That is, if there is already a run triggered by the sensor, do not run a new one until finished.
a
You can dig into
SensorEvaluationContext.instance
methods to find info on runs, eg. the
context.instance.get_run_records()
combined with
RunsFilter
can get you the unfinished runs of your job and you can decide whether you want to fire a new run request or not.
m
Got it, thanks!
👍 1