A flow can be started again before it is completed?

I think I understood, that a flow can not be re-started before it is completed.
To see if my understanding is correct, I thought I verify this with a simple flow (picture 1), that starts with
1* when I push a button
2* send a notification “aan” to my time line
3* wait 10 sec.
4* send a notification “flow beëindigd” to my time line

I thought - that pushing the button again before 4* is completed, would be ignored.
My time line tells me other wise (see picture 2)

It shows “aan” → the flow is started"
it shows another “aan” → when I push the button again within 10 sec.
it shows “flow beëindigd” - the first instance of the flow is completed
it shows “flow beëindigd” again → the 2nd instance of the flow is completed.

Is this correct? (a flow can be started again before it is completed)?
Am I overseeing something?

Thanks a lot!!!
Ruud


1 Like

Yes this is very well possible.
You can trigger a flow every second, and have the action card delayed by an hour.

Homey even has a built-in sensor which disables flows with more than 60 running instances. Meaning, when a flow is triggered over 60 times, and 60 ‘copy’ flows were not finished yet.

2 Likes

Thanks for confirming Peter. :smiley:

1 Like

Flows are run in seperate instanses for every trigger.

If you want to avoid that you may use Advanced Triggers app and set the execution to sequential.

1 Like

Thanks Anders,
I understand that is available for Homey Pro only? (I have the Homey bridge + cloud version)
But good to know for future upgrade :wink:
Ruud

I guess it is only available for Pro, but check whether the app is possible to install or not.
I do not have the bridge, never tested.

Another option is to set a logic variable like “Flow_Is_Running” to true once you start the flow the first time and set it to false once it has finished. And at the beginning of the flow stop execution if the logic variable is already set to true. So all additional triggers will be ignored.

1 Like