Dynamic rate delay with a buffer

I've been reading the few threads there is regarding the delay node but I can't seem to find what I'm looking for.

I have a set of messages that comes into a flow and what I'm trying to do is a blocking delay. Essentially the messages that come in would look like this:

command1
command2
command3
sleep 5000
command6
sleep 2000
command7
command8

With the message above, command1 and 2 would be passed without delays, then a blocking delay of 5 seconds would hold back command 6-8, then after 5 seconds, command6 is released, then another hold of 2 seconds before commands 7 and 8 are sent.

The issue I'm having is with Nodes async nature if I block one message the others still continue through.

I tried using a delay node and setting the msg.delay topic but the messages are still passing through without a delay.

Anyone have any ideas?

i think you could achieve what you want with

Craig

Thank you, that's exactly what I needed. I added a delay node along with a dual output function node and now I can add custom blocking delays.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.