run control UI unattended
Posted: 17 Mar 2020 21:07
Good afternoon folk.
I have a second phone where I run some flows with control UI unattended, so I wonder how I could avoid them to run at the same time, ruining everything.
Say I save a txt file with a status update on my first and main phone. Dropsync sync it to the second phone.
On the second phone there is a flow with a file observer trigger that launches a flow to copy the file's content and publish a status update on a social network, via its Android app. I have several flows one for Facebook, one for Instagram, one for vk, ecc.
I don't want them to run at the same time otherwise it won't work.
I tried defining a global variable say global_running and set it to on at the beginning not each flow. Then I put a condition, if the global_running is set to no, run the flow, if set to yes, wait 2 minutes and try again to run the flow, until you find it to no.
Sometimes it works, sometimes more flows run at the same time and so it does not work.
Any hint?
I wonder if I got the right path to face that problem or wethere I should have do it otherwise.
Thank you.
I have a second phone where I run some flows with control UI unattended, so I wonder how I could avoid them to run at the same time, ruining everything.
Say I save a txt file with a status update on my first and main phone. Dropsync sync it to the second phone.
On the second phone there is a flow with a file observer trigger that launches a flow to copy the file's content and publish a status update on a social network, via its Android app. I have several flows one for Facebook, one for Instagram, one for vk, ecc.
I don't want them to run at the same time otherwise it won't work.
I tried defining a global variable say global_running and set it to on at the beginning not each flow. Then I put a condition, if the global_running is set to no, run the flow, if set to yes, wait 2 minutes and try again to run the flow, until you find it to no.
Sometimes it works, sometimes more flows run at the same time and so it does not work.
Any hint?
I wonder if I got the right path to face that problem or wethere I should have do it otherwise.
Thank you.