Hi! How can I get all the PipelineRunsErrors' trac...
# announcements
r
Hi! How can I get all the PipelineRunsErrors' traceback so I can post them into Slack?
a
cc @yuhan
y
for catching errors, we currently don’t expose step events through the
success_hook
and
failure_hook
. this is something we plan to enable in the near future — the event will have information like failure stack trace and event type to determine run start/finish/fail
l
Hi @yuhan, how do we have access to the
event_list_hook
?
y
hi @Laura Moraes
event_list_hook
is an internal representation underlying the
success_hook
and
failure_hook
. so we don’t really recommend using it 😅 the reason behind it is we are still deciding if we want to expose the events as a list (which is the current implementation) or in streaming fashion (in iterator format so you can get event as it comes).
the risk is if you choose to use it, we might break you if we decide to switch how we expose the events all that being said, here’s how you can access it:
from dagster.core.definitions.decorators.hook import event_list_hook
success_hook
and
failure_hook
are actually wrapping the
event_list_hook
, so you can find the usage in the source code: https://github.com/dagster-io/dagster/blob/20390bc36f11a15f17144092199522de38a79f5[…]hon_modules/dagster/dagster/core/definitions/decorators/hook.py
l
thank you! i'll take a look!