Rodrigo Pasquale
09/29/2020, 5:50 PMalex
09/29/2020, 8:23 PMyuhan
09/29/2020, 8:30 PMsuccess_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/failLaura Moraes
03/03/2021, 8:09 PMevent_list_hook
?yuhan
03/03/2021, 8:30 PMevent_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).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.pyLaura Moraes
03/03/2021, 9:04 PM