work queue completion verification

Hello. I have a long-running process pushing several hundred million entries into the system that is chunked into a number of enqueued Work instances. I'm looking for a way - conceptually - to say “when all is complete, is the totality of what happened what I expected?” Something like: after everything is enqueued, set some state on the work queue, and then when the work queue is exhausted, receive a callback from the work manager with that initial state and do the validation. We've implemented our own solution outside of the work manager, but it would be valuable to have this capability tied to the queue. Does such a pattern exist? Thank you.

0 votes

0 answers

1323 views

ANSWER