https://dagster.io/ logo
Title
j

Jean Gonzalez

02/17/2023, 5:33 PM
Can one register custom dagster events? Use them like
context.log_event(
            CustomEvent(
                ...
            )
        )
And later fetch them like
custom_event_records = context.instance.get_event_records(
        EventRecordsFilter(
            event_type=MY_CUSTOM_EVENT_TYPE,
        ),
        ascending=False,
        limit=1,
    )
o

owen

02/17/2023, 5:58 PM
hi @Jean Gonzalez ! this behavior is not supported -- there is a strict whitelist of recognized events. In general, the events database shouldn't be manually written to beyond unstructured logs (it's meant mostly for internal machinery, and a separate database would likely be better suited towards tracking custom events)
j

Jean Gonzalez

02/17/2023, 7:09 PM
thank you!
:rainbow-daggy: 1