# Delay node - Error

**URL:** <https://discourse.nodered.org/t/delay-node-error/82553>\
**Category:** General\
**Created:** [2 November 2023 15:08 UTC](https://discourse.nodered.org/t/delay-node-error/82553 "2023-11-02T15:08:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FeliceM](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@FeliceM](https://discourse.nodered.org/u/FeliceM)\
**Post date:** [2 November 2023 15:08 UTC](https://discourse.nodered.org/t/delay-node-error/82553/1 "2023-11-02T15:08:59Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [2 November 2023 23:49 UTC](https://discourse.nodered.org/t/delay-node-error/82553/2 "2023-11-02T23:49:16Z")

</div>

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.

> **[node-red-contrib-cron-plus](https://flows.nodered.org/node/node-red-contrib-cron-plus)**
>
> A flexible scheduler (cron, solar events, fixed dates) node for Node-RED with full dynamic control and time zone support

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 January 2024 23:49 UTC](https://discourse.nodered.org/t/delay-node-error/82553/3 "2024-01-01T23:49:44Z")

</div>

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