This problem with delay node I reported in beta 2 still seems not to be working correctly. 🎉 Node-RED 3.1.0-beta.2 released - #45 by Colin
With this flow click the timestamp inject a few times to put some messages in the queue, then click flush to release them one at a time, which does work. However the number in the queue does not go down and after all of them have been released it then proceeds to release empty messages by itself each time the delay runs down.
[{"id":"b219a79eb50cc3ef","type":"delay","z":"43c7680367acf21b","name":"Queue","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":310,"y":940,"wires":[["c9e8b552e8c90995"]]},{"id":"c9e8b552e8c90995","type":"debug","z":"43c7680367acf21b","name":"debug 96","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":480,"y":940,"wires":[]},{"id":"7a0a1660829ec91f","type":"inject","z":"43c7680367acf21b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":900,"wires":[["b219a79eb50cc3ef"]]},{"id":"d10c601ae39443d3","type":"inject","z":"43c7680367acf21b","name":"Flush","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":1020,"wires":[["66b752c1530c4806"]]},{"id":"66b752c1530c4806","type":"function","z":"43c7680367acf21b","name":"Flush","func":"return {flush: 1}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":250,"y":1020,"wires":[["b219a79eb50cc3ef"]]}]