Page 1 of 1

Sleep action problem

Posted: 02 May 2015 17:33
by maxxyypoo
If you have some action and then split the tree into two streams. On one side u have a sleep for 5 seconds and then any action (on screen notification for example), when on other side you have something else (like execute other action and then one more action) so the second action on the second stream will NOT be executed UNTIL the 5 seconds from the first stream run out. Please help me out I've faces this problem many times.

Re: Sleep action problem

Posted: 04 May 2015 18:13
by Martin
Hi,

This is expected behavior of a flow.
You can avoid this by splitting the flow into two flows which will be executed in parallel so one sleep action in one flow does not block other actions in the other flow.

Regards,
Martin

Re: Sleep action problem

Posted: 04 May 2015 18:26
by maxxyypoo
Oh so sleep doesn't delay the next action in the sequence, it just puts the whole flow to sleep. OK makes sense, but would be nice if there was a delay as well. Because it makes it cleaner with longer flows instead of having 5 flows that are actually one flow. But up to you. Thank you for explanation! :)

Re: Sleep action problem

Posted: 04 May 2015 18:37
by Martin
This behavior is not limited to action Sleep but is enforced for all actions/conditions in a flow, however it might be less noticeable when the actions in a flow run very quickly.
I know that this behavior is not desired sometimes but it greatly simplifies debugging and makes it way easier for me to provide support so it's unlikely that I will change it.

Re: Sleep action problem

Posted: 04 May 2015 18:41
by maxxyypoo
K no problem :)