Skip to content

Get a DynamicPartitionsDefinition updated within a schedule definition before the RunRequest are fired #20508

Answered by maximearmstrong
lrevest asked this question in Q&A
Discussion options

You must be logged in to vote

Hi - I think you would need a sensor to add and process the dynamic partition requests. Returning a SensorResult with only the parameter dynamic_partitions_requests will add the partitions without launching a run. You could also add a SkipReason within the SensorResult to state the reason why the sensor is not returning a RunRequest, but it's not mandatory. See code below.

I'd recommend adding a minimum_interval_seconds to your sensor if you do so, to make sure it's not continuously running and evaluating your files. See documentation here.

A schedule can evaluate dynamic partitions, but the partition keys should be added before evaluation. Currently, we don't have something similar to Se…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@lrevest
Comment options

Answer selected by lrevest
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: partitions Related to Partitions area: schedule Related to schedules
4 participants