Reid Beels

10/12/2022, 12:17 AM
I’m trying to write a failure hook that will drop up a temporary database when an op fails. The name of the temporary database is generated dynamically and returned as an output from the first op in the chain. Is there a way to make this name available somewhere on the HookContext, or another way to have it be accessible from within the hook function?


10/12/2022, 1:54 AM
I’d model the temp db as a resource and let both the failure hook and first op depend on that resource, because resources can be passed across ops within a run. so in the first op, you can thread the name of the temp database into the resource, and when the run fails, inside the failure hook, you can access that temp database through