Hi Team. I am trying to run sensors locally, but i...
# ask-community
v
Hi Team. I am trying to run sensors locally, but i am getting the below error in the sensor tick response. Any help? Exception: Called
get_event_records
on a run-sharded event log storage with a cursor that is not run-aware. Add a RunShardedEventsCursor to your query filter or switch your instance configuration to use a non-run-sharded event log storage (e.g. PostgresEventLogStorage, ConsolidatedSqliteEventLogStorage)
c
Hmm what does the body of your sensor look like? Are you actually calling
get_event_records
?
v
yes, we are: this is a snippet:
Copy code
event_records = list(
    context.instance.get_event_records(
        EventRecordsFilter(
            event_type=DagsterEventType.PIPELINE_SUCCESS,
            after_cursor=cursor,
        ),
        ascending=True,
    )
)
Hi @chris. Any ideas on this? Still getting the same error for sensor in local
c
gotcha - I think you likely need to switch your event log storage in order to use a cursor locally - which event log storage are you using?