# DELAY node - variable delay not seeming to work

**URL:** <https://discourse.nodered.org/t/delay-node-variable-delay-not-seeming-to-work/14603>\
**Category:** General\
**Created:** [21 August 2019 12:35 UTC](https://discourse.nodered.org/t/delay-node-variable-delay-not-seeming-to-work/14603 "2019-08-21T12:35:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [21 August 2019 12:52 UTC](https://discourse.nodered.org/t/delay-node-variable-delay-not-seeming-to-work/14603/4 "2019-08-21T12:52:58Z")

</div>

Use a flow context variable to store the your desired message delay value.

Then use a Change node immediately before the Delay node to set `msg.delay` to the value of that flow context variable.

 ![Local_Node-RED](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/11677e6416558d1ff56f15a0d9017db63bde7375.png)

---

_[View the full topic](https://discourse.nodered.org/t/delay-node-variable-delay-not-seeming-to-work/14603)._
