Hi everyone,
I'm having an issue using a SimpleQueue where the messages instead of being FIFO are coming out FILO, am I doing anything wrong here?
Flow
Template
Function node
Outcome in text
Flow export:
[{"id":"c3f2355a.e2e448","type":"tab","label":"Flow 6","disabled":false,"info":""},{"id":"5d02f3d6.cab01c","type":"template","z":"c3f2355a.e2e448","name":"","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"[{"progress":1},\n{"progress":2},\n{"progress":3},\n{"progress":4},\n{"progress":5},\n{"progress":6},\n{"progress":7},\n{"progress":8},\n{"progress":9},\n{"progress":10}]","output":"str","x":650,"y":400,"wires":[["76c83ae2.78b004"]]},{"id":"fa9d01a4.fea7","type":"inject","z":"c3f2355a.e2e448","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":500,"y":400,"wires":[["5d02f3d6.cab01c"]]},{"id":"76c83ae2.78b004","type":"split","z":"c3f2355a.e2e448","name":"","splt":"\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":790,"y":400,"wires":[["fc81d29b.98edb"]]},{"id":"619ee052.bdc24","type":"file","z":"c3f2355a.e2e448","name":"","filename":"E:\Kris Temp Files\QueueTesting.json","appendNewline":true,"createDir":false,"overwriteFile":"false","encoding":"none","x":1330,"y":380,"wires":[["1d6fec1c.248804"]]},{"id":"fc81d29b.98edb","type":"simple-queue","z":"c3f2355a.e2e448","name":"","count":"1","unique_check":"","x":1020,"y":380,"wires":[["619ee052.bdc24"]]},{"id":"1d6fec1c.248804","type":"function","z":"c3f2355a.e2e448","name":"","func":"msg.trigger = true;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1120,"y":480,"wires":[["fc81d29b.98edb"]]}]