https://dagster.io/ logo
Title
m

martin o leary

04/18/2023, 10:59 AM
Is there a way to access the exception that was raised from within an op in the context of a run failure sensor ? Using the failure sensor test example I can't seem to access it from any of the objects created in the test. The goal is to access the raised exception trace and send that in a slack message within the sensor.
o

owen

04/18/2023, 9:42 PM
hi @martin o leary! I think this should cover your use case: https://github.com/dagster-io/dagster/discussions/8428
m

martin o leary

04/19/2023, 7:40 AM
Thank you @owen! I thought I had all bases covered with the slack and the linen archive 🙂
I actually needed to change the line appending the errors the this:
errors.append(e.dagster_event.event_specific_data.error_display_string)
This was what got me the actual stack trace from my user code exception.