Page 1 of 1

All flows are suspending when using sleep()

Posted: 09 Nov 2015 15:03
by pa7z2kd
When I'm using sleep('5m') in 'execute command' action in some flow, all other flows (not only copies of this flow, all automagic flows) are suspending too.
Automagic 1.29.0
Nexus 5, cyanogenmod 12.1

Re: All flows are suspending when using sleep()

Posted: 09 Nov 2015 19:11
by Martin
Hi,

Can you share the flow to demonstrate the issue? I'm not sure what you mean by sleep('5m') within an action 'Execute Command' so I can not reproduce the problem.

Regards,
Martin

Re: All flows are suspending when using sleep()

Posted: 09 Nov 2015 20:12
by pa7z2kd
Sorry, it was action 'script'
Start flow1 and then flow2. Flow1 will be stopped until flow2 will be executed

Re: All flows are suspending when using sleep()

Posted: 10 Nov 2015 18:56
by Martin
Thanks, I understand it now.
This behavior is by design, only one script can run at a time to avoid concurrency problems. You can move a sleep to its own action 'Sleep' to avoid this problem.