David Takacs
03/04/2024, 1:30 PMScout
03/04/2024, 1:30 PMHookContext
via a failure_hook
, you would typically need to access the output values of the step that failed within the hook's execution context. However, based on the documentation, there is no direct way to add an output value to HookContext
using a failure_hook
. The HookContext
object provides information about the execution context in which the hook is running, such as the current job, run ID, and the specific step that triggered the hook. While you can access certain information from the HookContext
, such as the op that failed and any associated metadata, the documentation does not provide a method to explicitly add an output value to the HookContext
within a failure_hook
. If you need to work with output values in the context of a hook, you might consider capturing output values during the execution of your job and then using those captured values within your hook. However, this would be an indirect method and would require custom logic to capture and store the output values outside of the failure_hook
itself. For specific use cases or advanced scenarios not covered in the documentation, it's recommended to check the latest Dagster releases or the community discussions for any new features or patterns that might have been introduced after the knowledge cutoff date.