Start a backfill for all partitions from a sensor #27608
-
Hey, I want to start a backfill for all partitions of a partitioned run with a sensor. I saw #19457 and tried the code below:
Unfortunately, I encountered several issues with this approach:
Alternatively, I know that it's possible to do
This is not what I want since it creates many different runs that are not grouped under a single backfill. Is there a good way to start a single backfill for all partitions from a sensor? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The first code runs in a single run backfill, which is how these partition start and end keys are used for. You could use the graphql API from python to launch a backfill from the sensor. Have you also looked at whether Automation conditions are sufficient enough instead of a sensor? According to docs its now also possible to have custom automation condition |
Beta Was this translation helpful? Give feedback.
Thanks for the answer. Using the GraphQL API sounds like the best shot. I specifically want to trigger a whole job, not specific assets. The way that I understood AutomationConditions is that they only work on an asset basis.
For future reference, the necessary GraphQL command is below: