Simon
01/30/2023, 7:53 PMjamie
01/30/2023, 8:59 PMcontext.op_config
? that might contain the partition info. I haven’t tested myself, but i believe that’s where it should be. if that doesn’t work, let me know!Simon
01/30/2023, 9:23 PMcontext.op_config
, it unfortunately only contains the config of the Op (as expected given the name I guess :P)jamie
01/30/2023, 9:24 PMSimon
01/30/2023, 9:30 PMtest_partitions_def = DailyPartitionsDefinition(start_date="2022-04-01")
test_asset = AssetsDefinition.from_graph(
test_graph,
partitions_def=test_partitions_def
)
The graph gets passed the config via @graph(config={...}
. The hook's context.op_config
contains exactly what's in the config for the Op that the hook is onjamie
01/30/2023, 9:35 PMsandy
01/30/2023, 9:38 PM_step_execution_context
property on the HookContext
. If you file a GH issue for this, we also might be able to add it at some pointSimon
01/30/2023, 9:51 PM_step_execution_context
. Will file an issue once I know more/if that works.