https://dagster.io/ logo
Title
v

Vignesh M

03/06/2023, 7:39 AM
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

chris

03/06/2023, 9:20 PM
Hmm what does the body of your sensor look like? Are you actually calling
get_event_records
?
v

Vignesh M

03/07/2023, 9:59 AM
yes, we are: this is a snippet:
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

chris

05/26/2023, 4:11 PM
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?