https://dagster.io/ logo
r

Rodrigo Pasquale

09/29/2020, 5:50 PM
Hi! How can I get all the PipelineRunsErrors' traceback so I can post them into Slack?
a

alex

09/29/2020, 8:23 PM
cc @yuhan
y

yuhan

09/29/2020, 8:30 PM
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

Laura Moraes

03/03/2021, 8:09 PM
Hi @yuhan, how do we have access to the
event_list_hook
?
y

yuhan

03/03/2021, 8:30 PM
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

Laura Moraes

03/03/2021, 9:04 PM
thank you! i'll take a look!