Delay node - Error

I have set a delay node to 100 days.
I noted the following error in the logs:

Nov 02 16:43:02 remoteir Node-RED[593]: (node:593) TimeoutOverflowWarning: 8640000000 does not fit into a 32-bit signed integer.
Nov 02 16:43:02 remoteir Node-RED[593]: Timeout duration was set to 1.

The value 8640000000 in milliseconds is equivalent to 100 days, which is what I did set.
However, if I am not mistaken, it exceeds the maximum safe timeout duration of approximately 24.8 days for 32-bit signed integers.
If so, the maximum delay to avoid errors should be 28,4 days.

Am I wrong?

I think that sounds right.

For such a long delay, I would suggest scheduling it with some thing like the cron+ node, as it's likely that you would lose the delay timer due to restarts etc over that time.

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