<@U0667DNC02Y> Can I add info from a hook to Execu...
# ask-ai
d
@Scout Can I add info from a hook to ExecuteInProcessResult?
s
Based on the documentation, the
ExecuteInProcessResult
object is used for retrieving run success, events, and outputs from
execute_job
. It does not directly mention the ability to add information from a hook to the
ExecuteInProcessResult
. However, the documentation does describe that events and run information can be retrieved from the
ExecuteInProcessResult
object, and outputs can be accessed when the object is used as a context manager. If you want to access outputs from a hook, you can use the
HookContext
to access output values via
HookContext.op_output_values
. However, there is currently no direct way to access output metadata through the
HookContext
, as indicated by an open issue discussing the possibility of allowing
HookContext
to access output metadata. To summarize, the documentation does not explicitly state that you can add information from a hook to the
ExecuteInProcessResult
. If you need to work with hook-related data, you would typically use the
HookContext
within the hook's execution to interact with outputs or other relevant information. If you require further capabilities, such as adding additional information to the
ExecuteInProcessResult
, this may not be supported directly and could be a subject for a feature request or further discussion within the Dagster community.