My desktop flow is scraping some data from an offsite industrial machine, and the production staff need to still be able to interact with the machine reliably. My desktop flow is triggered to start from a cloud flow via a timer in my Power App that runs every 30 minutes.
I would basically like to add "Pause" and "Restart" buttons in the Power App so that production users could make adjustments without my scraper routine taking over while they are trying to do their job.
Is this possible at all? Is there a way to control the entire run state of the flow? For example, could I use the "Pause" button to update a variable via a second cloud flow that would pause the desktop flow and wait until it sees the variable change back?
I don't think I could simply set up another desktop automation to be triggered to pause the run, as I don't think there's a button I can press to do that outside of the editor.
The only other solution I can currently see is to figure out a way to put an "if this variable is true, continue, else wait for the cloud flow to set the variable back to true" step between each of the 250+ steps in my desktop flow, which I'm not even sure would be possible, unless there is a "wait for variable" function I'm missing.