Should I switch my sensor off when running backfil...
# ask-community
r
Should I switch my sensor off when running backfill or Dagster will handle the race condition?
j
hey @Rafael Gomes what race condition specifically? are you worried about the sensor doing duplicate work when you run a job in a backfill?
r
The data will be ok, I was wondering about duplicate jobs, some of them are computationally expensive in my case. I can stop the sensor during backfill 🙂 no problem at all
j
ok. You can also use run keys in the jobs launched from the sensor to reduce duplicate work. https://docs.dagster.io/concepts/partitions-schedules-sensors/sensors#idempotence-using-run-keys RunRequests with duplicate keys will only be executed once
🌈 1