# Long time delays

**URL:** <https://discourse.nodered.org/t/long-time-delays/41472>\
**Category:** General\
**Created:** [23 February 2021 10:19 UTC](https://discourse.nodered.org/t/long-time-delays/41472 "2021-02-23T10:19:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ErmakovSergey](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ermakovsergey/32/37697_2.png) [@ErmakovSergey](https://discourse.nodered.org/u/ErmakovSergey)\
**Post date:** [23 February 2021 10:19 UTC](https://discourse.nodered.org/t/long-time-delays/41472/1 "2021-02-23T10:19:35Z")

</div>

What's the best way to implement long delays (days, months) with persisting messages between reboots

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 February 2021 10:46 UTC](https://discourse.nodered.org/t/long-time-delays/41472/2 "2021-02-23T10:46:26Z")

</div>

The cron-plus node can be dynamically configured via a msg input and has persistence built in.

Look at the built in examples (ctrl+I --\> examples) and the built in documentation (on the side bar)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [23 February 2021 12:20 UTC](https://discourse.nodered.org/t/long-time-delays/41472/3 "2021-02-23T12:20:00Z")

</div>

And if you need to persist some data, that can be done with the filesystem persistence available to context/flow/global variables. However, note that these - I think - are retained in memory as well. So you might want to consider external storage for larger amounts of data. A simple JSON file may be enough or possibly a database depending on the size and complexity of the data.

---

<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:** [24 April 2021 12:20 UTC](https://discourse.nodered.org/t/long-time-delays/41472/4 "2021-04-24T12:20:30Z")

</div>

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