# Instances of Flow or Script

**URL:** <https://community.homey.app/t/instances-of-flow-or-script/100692>\
**Category:** Questions & Help\
**Created:** [January 10, 2024, 5:56pm UTC](https://community.homey.app/t/instances-of-flow-or-script/100692 "2024-01-10T17:56:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GD91](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gd91/32/78099_2.png) [@GD91](https://community.homey.app/u/GD91)\
**Post date:** [January 10, 2024, 5:56pm UTC](https://community.homey.app/t/instances-of-flow-or-script/100692/1 "2024-01-10T17:56:45Z")

</div>

Hello,

What happened if two instances of a flow or a script are running simultaneously ?

Was it an issue ?

Regards

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [January 10, 2024, 6:03pm UTC](https://community.homey.app/t/instances-of-flow-or-script/100692/2 "2024-01-10T18:03:06Z")

</div>

> [@GD91](#):
>
> What happened if two instances of a flow or a script are running simultaneously ?

What’s your actual question?

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [January 10, 2024, 6:04pm UTC](https://community.homey.app/t/instances-of-flow-or-script/100692/3 "2024-01-10T18:04:40Z")

</div>

> [@GD91](#):
>
> Was it an issue ?

Nope unles they depend on each other and therefore give a result your partner didn’t expect and appreciate… then you have an issue 🤣

---

<div class="post-metadata">

**Author:** ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)\
**Post date:** [January 10, 2024, 6:34pm UTC](https://community.homey.app/t/instances-of-flow-or-script/100692/4 "2024-01-10T18:34:46Z")

</div>

Hi @GD91 ,  
Usually it is not an issue. You have to be careful if you use (global) variables and all variables you declare in your GUI are global.  
I tested it for Flows and it seems there is a limit of about 16 different instances before my Homey Pro stopped.

So Flows should nit be too long in time (_delay_ cards), but you should already be careful with using _delay_. You have to avoid the card waiting while the Homey Pro is shut down.  
Just for curiosity. What type of flows or scripts do you want to run parallel?
