All flows are suspending when using sleep()

Post your questions and help other users.

Moderator: Martin

Post Reply
pa7z2kd
Posts: 12
Joined: 28 Jul 2015 18:45

All flows are suspending when using sleep()

Post by pa7z2kd » 09 Nov 2015 15:03

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: All flows are suspending when using sleep()

Post by Martin » 09 Nov 2015 19:11

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

pa7z2kd
Posts: 12
Joined: 28 Jul 2015 18:45

Re: All flows are suspending when using sleep()

Post by pa7z2kd » 09 Nov 2015 20:12

Sorry, it was action 'script'
Start flow1 and then flow2. Flow1 will be stopped until flow2 will be executed
Attachments
FlowsAndLog.zip
(1.79 KiB) Downloaded 663 times

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: All flows are suspending when using sleep()

Post by Martin » 10 Nov 2015 18:56

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.

Post Reply