Dimka Filippov
01/25/2022, 2:00 PMhooks={slack_on_failure('#channel_name', my_message_func)
inside .to_job()
after declaring my_message_func
by example from docs
but unfortunately, I'm getting no notifications in the channel exactly on op failure =/alex
01/25/2022, 3:41 PMhook
in the event log for the run you tried?yuhan
01/25/2022, 7:01 PMDimka Filippov
01/26/2022, 12:48 AMSkipped the execution of hook "_hook". It does not meet its triggering conditions during the execution of "op_name".
yuhan
01/26/2022, 5:54 PMDimka Filippov
01/26/2022, 7:14 PM.execute_in_process()
after it has been configuredalex
01/26/2022, 7:31 PMexecute_in_process
is mostly designed for testing so we default a flag raise_on_error
to true, so the exception bubbles all the way up to the callsite instead of the normal flow of running hooks.
If you set raise_on_error
to False
I think it may resolve your issueyuhan
01/26/2022, 7:31 PMraise_on_error=True
which is the defaultDimka Filippov
01/26/2022, 8:36 PMalex
01/26/2022, 8:51 PMinstance=DagsterInstance.get()
Dimka Filippov
01/26/2022, 8:59 PM