I have a very weird issue with node-red-contrib-queue-gate, in combination with node-red-contrib-simple-gate, which is either a very subtle bug or (just as likely) I am missing something simple. I am including the flow that shows the problem. Sorry it is a little complex but I haven't managed to replicate it with a simpler flow. I have added debug nodes showing what is going into the q-gate and what is coming out. To trigger it hit the test inject button at the top and wait a few seconds. This is what the debug shows.
You can see that first a test message is sent into the q-gate node, which queues it, then the flow sends a peek which releases that message. A few seconds later another peek is sent but this time the message that is released has payload "close" and topic "gate_control", but the q-gate node has not been sent any such message. Messages containing that are actually sent into the simple-gate node so I wonder whether there may be some cross coupling between them.
[{"id":"e11111db.2371a8","type":"inject","z":"559d36b1.8777a8","name":"test ","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"Test message from tigger","payload":"Test message 1","payloadType":"str","x":130,"y":100,"wires":[["dc8d8fcf.8609d"]]},{"id":"92ac67a3.22c908","type":"gate","z":"559d36b1.8777a8","name":"","controlTopic":"gate_control","defaultState":"open","openCmd":"open","closeCmd":"close","toggleCmd":"toggle","defaultCmd":"default","persist":false,"x":610,"y":340,"wires":[["b3d4b11f.4590e"]]},{"id":"7070c19f.6e9458","type":"change","z":"559d36b1.8777a8","name":"Close gate","rules":[{"t":"set","p":"topic","pt":"msg","to":"gate_control","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"close","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":300,"wires":[["92ac67a3.22c908"]]},{"id":"eb4bce63.33221","type":"change","z":"559d36b1.8777a8","name":"Open gate","rules":[{"t":"set","p":"topic","pt":"msg","to":"gate_control","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"open","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":440,"wires":[["92ac67a3.22c908"]]},{"id":"9d581c6e.04601","type":"link out","z":"559d36b1.8777a8","name":"","links":["4f83e1dc.d434d8"],"x":615,"y":200,"wires":[]},{"id":"4f83e1dc.d434d8","type":"link in","z":"559d36b1.8777a8","name":"","links":["a4112796.e7ebb8","9d581c6e.04601"],"x":55,"y":440,"wires":[["f9f1c824.1b4d58"]]},{"id":"7a077cad.8dcab4","type":"change","z":"559d36b1.8777a8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"peek","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"control","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":340,"wires":[["92ac67a3.22c908"]]},{"id":"dc8d8fcf.8609d","type":"link out","z":"559d36b1.8777a8","name":"","links":["376153ca.1cd5cc"],"x":275,"y":100,"wires":[]},{"id":"aa64620.a132da","type":"debug","z":"559d36b1.8777a8","name":"OUT","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":530,"y":120,"wires":[]},{"id":"58decb0a.1a91e4","type":"debug","z":"559d36b1.8777a8","name":"IN","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":520,"y":80,"wires":[]},{"id":"87f9c1f7.69612","type":"q-gate","z":"559d36b1.8777a8","name":"q-gate","controlTopic":"control","defaultState":"queueing","openCmd":"open","closeCmd":"close","toggleCmd":"toggle","queueCmd":"queue","defaultCmd":"default","triggerCmd":"trigger","flushCmd":"flush","resetCmd":"reset","peekCmd":"peek","dropCmd":"drop","statusCmd":"status","maxQueueLength":"100","keepNewest":false,"qToggle":false,"persist":false,"x":450,"y":220,"wires":[["7070c19f.6e9458","aa64620.a132da","9d581c6e.04601"]]},{"id":"b3d4b11f.4590e","type":"delay","z":"559d36b1.8777a8","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":640,"y":280,"wires":[["87cf98e2.db4998"]]},{"id":"f9f1c824.1b4d58","type":"delay","z":"559d36b1.8777a8","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":180,"y":440,"wires":[["eb4bce63.33221"]]},{"id":"376153ca.1cd5cc","type":"link in","z":"559d36b1.8777a8","name":"","links":["dc8d8fcf.8609d"],"x":115,"y":240,"wires":[["7a077cad.8dcab4","87cf98e2.db4998","87d74d29.280d18"]]},{"id":"87cf98e2.db4998","type":"function","z":"559d36b1.8777a8","name":"","func":"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":300,"y":220,"wires":[["58decb0a.1a91e4","87f9c1f7.69612"]]},{"id":"87d74d29.280d18","type":"delay","z":"559d36b1.8777a8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":140,"y":320,"wires":[["7a077cad.8dcab4"]]}]
I am using node-red 1.2.3, nodejs 14.15, q-gate 1.5.0 and simple-gate 0.4.0. I don't think this is a new issue as I first found it on older versions of the nodes (I think).
[Edit] Note that to go round again you will have to do a Restart Flows to get rid of the message in the queue.