This message was deleted.
# ask-ai
s
This message was deleted.
s
To retrieve information about exceptions thrown during the execution of a job, you would typically inspect the events associated with the
ExecuteJobResult
. However, the documentation does not explicitly describe a method to get the "exception path" directly from an
ExecuteJobResult
object. If you need to access details about exceptions that occurred during job execution, you can look at the events yielded by the job execution. The
ExecuteJobResult
object has an
_all_events
property that contains a list of all events yielded by the job execution. By iterating over these events, you can find events of type
STEP_FAILURE
or
FAILURE
, which may contain exception details. Here's a general approach based on the documentation: 1. Iterate over the
_all_events
property of the
ExecuteJobResult
object. 2. Check for events that indicate a failure, such as
STEP_FAILURE
or
FAILURE
. 3. Extract the exception details from the relevant event's properties. Please note that the
_all_events
property is intended for internal use and is not part of the public API. Therefore, it should be used with caution, as it may change in future versions of Dagster. For a more stable and public API approach, you would typically use the logging system to capture and inspect exceptions. If you need to programmatically access exception details, consider using custom event metadata or a resource that captures exceptions and makes them available after execution. If you encounter a specific issue or need further assistance with debugging, please provide more context or error messages, and I can offer more targeted advice or follow-up questions.
d
why do I get a mode:default tag?