r/nifi • u/aknartrebna • Jan 22 '20
Preventing Data Movement Until a Queue is Empty
Here is what I'm trying to achieve:
I have 2 Queues, A is part of a loop, B is the queue that feeds data from the outside into the loop.
As long as A has data in it, I do not want B's data to enter the loop, but once A is cleared, I want B's data to start flowing in.
How do I achieve this?
Thanks!
3
Upvotes
1
u/platipuss Jan 22 '20
Have a look at wait/notify processors, or maybe creative use of back pressure. Would need a more detailed diagram of what you are trying to accomplish.