Delay Node Stacking problem

I currently have a message delay set for 2 minutes.in a "Delay Node". I've noticed that if a second message hits the delay input prior to the 2 minute delay, the second message is stacked. The first message completes it's 2 minute delay and is output, The second message is then output after it's 2 minute delay.

Rather then having messages stacked I would like to see the first message start the 2 minute delay, and all subsequent messages keep resetting the 2 minute delay until the 2 minute delay can complete outputting the first message. Is it possible to reconfigure the delay to stop the message stacking?

X.

I think you want the trigger node then.

[
    {
        "id": "b0f2e9d9bd632950",
        "type": "inject",
        "z": "be14baae.1728",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 570,
        "y": 3120,
        "wires": [
            [
                "694a36c65044e905"
            ]
        ]
    },
    {
        "id": "ba2b7ea1c669fc15",
        "type": "debug",
        "z": "be14baae.1728",
        "name": "debug 321",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 950,
        "y": 3120,
        "wires": []
    },
    {
        "id": "694a36c65044e905",
        "type": "trigger",
        "z": "be14baae.1728",
        "name": "",
        "op1": "",
        "op2": "",
        "op1type": "nul",
        "op2type": "pay",
        "duration": "2",
        "extend": false,
        "overrideDelay": false,
        "units": "min",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 735,
        "y": 3120,
        "wires": [
            [
                "ba2b7ea1c669fc15"
            ]
        ]
    }
]

smcgann99 you're right. Just looked at the "Trigger Node" and it looks like it will do the job. I need to rearrange my nodes; I had a function node sending a message to the delay. Now I need to have the trigger-node activate the function node.

Thanks again, X (formerly Twitter, just kidding lol)

UPDATE: It works and I eliminated the Function Node; the Trigger outputs the string.

1 Like

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