# Kill run

**URL:** <https://forum.dynamobim.com/t/kill-run/4534>\
**Category:** FAQ\
**Created:** [June 15, 2016, 4:19pm UTC](https://forum.dynamobim.com/t/kill-run/4534 "2016-06-15T16:19:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddelarosa](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@ddelarosa](https://forum.dynamobim.com/u/ddelarosa)\
**Post date:** [June 15, 2016, 4:19pm UTC](https://forum.dynamobim.com/t/kill-run/4534/1 "2016-06-15T16:19:15Z")

</div>

Is there a way to kill a script if it is taking too long to run?

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [June 15, 2016, 6:16pm UTC](https://forum.dynamobim.com/t/kill-run/4534/2 "2016-06-15T18:16:22Z")

</div>

Task Manager (hope you’ve saved your RVT and DYN, first)

---

<div class="post-metadata">

**Author:** ![jarrodryanza](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jarrodryanza/32/18469_2.png) [@jarrodryanza](https://forum.dynamobim.com/u/jarrodryanza)\
**Post date:** [June 17, 2016, 5:58am UTC](https://forum.dynamobim.com/t/kill-run/4534/3 "2016-06-17T05:58:55Z")

</div>

This is a real problem. I’ve often forgotten to synchronise my model first. Hopefully I’ve learnt my lesson.

---

<div class="post-metadata">

**Author:** ![Einar\_Raknes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/einar_raknes/32/8566_2.png) [@Einar\_Raknes](https://forum.dynamobim.com/u/Einar_Raknes)\
**Post date:** [June 17, 2016, 9:12am UTC](https://forum.dynamobim.com/t/kill-run/4534/4 "2016-06-17T09:12:29Z")

</div>

This would be a nice feature indeed. Some nodes will also go into an infinite loop when run in automatic mode, e.g Wall.Flip from Clockwork. It would be nice to swich back to manual after it has started to run.

Have anyone posted this as an improvement at GitHub? [https://github.com/DynamoDS/Dynamo/issues](https://github.com/DynamoDS/Dynamo/issues)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [June 17, 2016, 10:01am UTC](https://forum.dynamobim.com/t/kill-run/4534/5 "2016-06-17T10:01:49Z")

</div>

It happens to me sometimes I will Hit Esc several times. It will stop running script.

---

<div class="post-metadata">

**Author:** ![Einar\_Raknes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/einar_raknes/32/8566_2.png) [@Einar\_Raknes](https://forum.dynamobim.com/u/Einar_Raknes)\
**Post date:** [June 17, 2016, 11:03am UTC](https://forum.dynamobim.com/t/kill-run/4534/6 "2016-06-17T11:03:12Z")

</div>

@Kulkul Do you hit Esc in Revit or Dynamo? If you have a command active in Revit, Dynamo won’t be able to run before that command is canceled. Then it will work with Esc.

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [June 17, 2016, 11:23am UTC](https://forum.dynamobim.com/t/kill-run/4534/7 "2016-06-17T11:23:28Z")

</div>

Don’t know if its Revit or Dynamo 😕 I just Hit Esc it works tho 😁 No command is active in background.

---

<div class="post-metadata">

**Author:** ![jarrodryanza](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jarrodryanza/32/18469_2.png) [@jarrodryanza](https://forum.dynamobim.com/u/jarrodryanza)\
**Post date:** [June 17, 2016, 1:31pm UTC](https://forum.dynamobim.com/t/kill-run/4534/8 "2016-06-17T13:31:29Z")

</div>

@Kulkul Are you running the Dynamo revit addin or the Dynamo stand-alone?

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [June 17, 2016, 1:32pm UTC](https://forum.dynamobim.com/t/kill-run/4534/9 "2016-06-17T13:32:57Z")

</div>

Dynamo addin

---

<div class="post-metadata">

**Author:** ![jarrodryanza](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jarrodryanza/32/18469_2.png) [@jarrodryanza](https://forum.dynamobim.com/u/jarrodryanza)\
**Post date:** [June 17, 2016, 1:34pm UTC](https://forum.dynamobim.com/t/kill-run/4534/10 "2016-06-17T13:34:34Z")

</div>

Hitting escape doesn’t seem to work for me and I’m using the same. It’s weird, but I guess I will just have to remember the synchronise button for the time being.

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [June 17, 2016, 1:46pm UTC](https://forum.dynamobim.com/t/kill-run/4534/11 "2016-06-17T13:46:45Z")

</div>

😁 Dude its not neccessary that it will work for all the PC’s. It depends upon system configuration. I am using Asus Gaming machinehttp://www.asus.com/ROG-Republic-Of-Gamers/ROG\_G20AJ/

---

<div class="post-metadata">

**Author:** ![jarrodryanza](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jarrodryanza/32/18469_2.png) [@jarrodryanza](https://forum.dynamobim.com/u/jarrodryanza)\
**Post date:** [June 17, 2016, 1:58pm UTC](https://forum.dynamobim.com/t/kill-run/4534/12 "2016-06-17T13:58:59Z")

</div>

Haha, that makes one of us. Only our bim manager and max renderers have such machines!😥

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [June 17, 2016, 2:09pm UTC](https://forum.dynamobim.com/t/kill-run/4534/13 "2016-06-17T14:09:48Z")

</div>

It would be nice to have a feature that would optionally save the RVT and/or DYN before each run. Visual Studio saves one’s whole solution on each compile and that makes sense.

Until then, it’s CTRL-s all day.

---

<div class="post-metadata">

**Author:** ![Einar\_Raknes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/einar_raknes/32/8566_2.png) [@Einar\_Raknes](https://forum.dynamobim.com/u/Einar_Raknes)\
**Post date:** [June 17, 2016, 2:32pm UTC](https://forum.dynamobim.com/t/kill-run/4534/14 "2016-06-17T14:32:00Z")

</div>

The .dyn is actually saved before each run (in manual) , check the backup folder.

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [June 17, 2016, 3:04pm UTC](https://forum.dynamobim.com/t/kill-run/4534/15 "2016-06-17T15:04:54Z")

</div>

[quote=“Einar\_Raknes, post:14, topic:4534”]  
The .dyn is actually saved before each run (in manual)  
[/quote]Good to know

---

<div class="post-metadata">

**Author:** ![ddelarosa](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@ddelarosa](https://forum.dynamobim.com/u/ddelarosa)\
**Post date:** [June 17, 2016, 4:14pm UTC](https://forum.dynamobim.com/t/kill-run/4534/16 "2016-06-17T16:14:06Z")

</div>

Good to know @Einar_Raknes. It is such a hassle to have to force shut down and then reboot.

---

<div class="post-metadata">

**Author:** ![Einar\_Raknes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/einar_raknes/32/8566_2.png) [@Einar\_Raknes](https://forum.dynamobim.com/u/Einar_Raknes)\
**Post date:** [June 18, 2016, 12:07pm UTC](https://forum.dynamobim.com/t/kill-run/4534/17 "2016-06-18T12:07:17Z")

</div>

Maybe I was wrong about backup before each run, but Dynamo saves a backup each 60000ms = 1 min. This can be changed in %appdata%\Dynamo\1.0\DynamoSettings.xml

```
  <BackupInterval>60000</BackupInterval>
  <BackupFilesCount>1</BackupFilesCount>
```

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [October 8, 2017, 10:30pm UTC](https://forum.dynamobim.com/t/kill-run/4534/18 "2017-10-08T22:30:16Z")

</div>

Hi,  
Just had the moment of infinite spinning terror, and then the best thought after.  
Put a prefix node group that uses the node -\> Document.SyncroniseWithCentral from #clockwork and have it run before the rest of the script does node -\> Passthrough also from #clockwork  
That way at least you always have your work saved before the risk of a loop or crash.  
For small projects this should be fine as long as you are working in a local file and the central model on the server.  
Anyone got any thoughts on how to do this with a little bit of code instead? 😉

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 9, 2017, 2:27am UTC](https://forum.dynamobim.com/t/kill-run/4534/19 "2017-10-09T02:27:46Z")

</div>

> [@Ewan\_Opie](#):
>
> That way at least you always have your work saved before the risk of a loop or crash

On bigger jobs in a workshared environment that would be a nightmare as you would have to confirm no one is syncing before running the script… anyone know how that node handles a synchronization error?

---

<div class="post-metadata">

**Author:** ![rafaelPD66Z](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@rafaelPD66Z](https://forum.dynamobim.com/u/rafaelPD66Z)\
**Post date:** [October 16, 2021, 2:27am UTC](https://forum.dynamobim.com/t/kill-run/4534/21 "2021-10-16T02:27:32Z")

</div>

Use task manager, but don’t kill Revit, just kill dynamo. its name appears like nwjs with the dynamo run icon. It stop running and revit continue working

[Next page](https://forum.dynamobim.com/t/kill-run/4534.md?page=2)
