Replies: 1 comment 2 replies
-
|
There's no easy way to invalidate a tree. Your app code which invalidates a batch can also easily recurse up and invalidate parent, gp, etc if the situation calls for it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a few workflows that are implemented using nested batches and I'm struggling with figuring out what is the best way to allow for invalidating the entire structure. My system tracks the top-level batch ID tied to a model, so I have easy access to that, but if I invalidate the top-level batch it doesn't seem that a job in a child batch has a
trueresponse tovalid_within_batch?.Is there some "good" way to propagate batch invalidation to the entire tree of batches if I invalidate the top-level batch manually? One approach that has occurred to me is for a job to check its own batch for invalidation and then "walk" the
parenttree upwards checking each batch above itself.Beta Was this translation helpful? Give feedback.
All reactions