Hi all, thanks to the <documentation> I was able t...
# ask-community
m
Hi all, thanks to the documentation I was able to set up a sensor to notify me of any failures. I'm using
context.failure_event.message
to see which function failed. Is it also possible to get the extended details of why the function failed? I.e. I have a function:
Copy code
@op
def div_by_zero():
    return 1/0
If I run this op in a job, it logically fails and
context.failure.event_message
tells me it's step div_by_zero that failed. Is it possible to also get the details (in this case Python raising a 'ZeroDivisionError')? I can see these as 'info' step in dagit but not sure how to get this output. Thanks in advance!
c
should be able to do
context.failure_event.event_specific_data.error
but this is getting into internals a little bit... we should probably have a more straightforward way of getting that information off of the context directly