# Restart flows using Node Red API

**URL:** <https://discourse.nodered.org/t/restart-flows-using-node-red-api/34632>\
**Category:** General\
**Created:** [21 October 2020 11:42 UTC](https://discourse.nodered.org/t/restart-flows-using-node-red-api/34632 "2020-10-21T11:42:53Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![mannharleen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mannharleen/32/25594_2.png) [@mannharleen](https://discourse.nodered.org/u/mannharleen)\
**Post date:** [30 October 2020 01:06 UTC](https://discourse.nodered.org/t/restart-flows-using-node-red-api/34632/9 "2020-10-30T01:06:56Z")

</div>

pm2 is used to restart the whole NR process, not one particular flow (the original ques asks to restart all flows, not a single one).

**I use pm2 for one big reason** : my NR process runs inside a docker container, so when my users upgrade a node, I dont want to restart the container itself (its time consuming). Instead, I restart the process using pm2.  
**There are other benefits** like automatic restarts, monitoring etc.

---

_[View the full topic](https://discourse.nodered.org/t/restart-flows-using-node-red-api/34632)._
