I am attempting to create a schedule that refreshe...
# ask-community
t
I am attempting to create a schedule that refreshes a dynamically partitioned asset but am erroring out due to the partition_key not being set. I am currently defining an asset job and utilizing it in a schedule and am running into the following error "Cannot access partition_key for non-partitioned run." Anybody know a way to do this?
t
Are you able to attach the partitions definition to the job? Here's an example of how to do that with a time-window partition, but it'd be the same for a dynamic partition too.
t
I am able to do this but I also need to be able to define a time constraint like a cron_schedule that runs daily. To my knowledge build_schedule_from_partitioned_job does not take in any sort of time parameter
I attempted to put our custom dynamic partition definition as the partitions_def and recieved the error "Recieved invalid partitions def" stating the only valid partition definitions are time window partitions and multi partitions with single time window dimensions