You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I access the partition key of a partitioned asset when using the (newly added) hooks support?
e.g., given a HookContext in a hook attached to an asset, how do I access the partition_key?
@dg.success_hook(required_resource_keys={"slack"})defslack_on_success(context: dg.HookContext):
# how do I get access to the partition key here? @dg.asset( ...partitions_def=partitions,hooks={slack_on_success},)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
How can I access the partition key of a partitioned asset when using the (newly added) hooks support?
e.g., given a
HookContext
in a hook attached to an asset, how do I access the partition_key?Beta Was this translation helpful? Give feedback.
All reactions