
DarrinG.72466 (Customer) asked a question.
Hello all,
I have a workflow that sends an api query to grab certain events from the system log api every hour, then a helper flow that will take each event and put certain objects in a table that will be emails as a CSV by a separate workflow once every day. My goal is to get all the events for a 24 hour period. Worked just fine when it was just emails, but I'm running into an issue with making the CSV file.
The problem I'm facing is that it takes over an hour for the workflow to complete its run before it starts again, sending more data to the helper flow. Mixing up the csv file. So ParentFlow runs every hour, but runtime to completion is an 80 minutes. So at 80mins of processing an hour of data * 24 hours of data / 60 mins to make it even = takes 32 hours to generate 24 hours of data. Is there a way to make ParentFlow wait for a successful execution outside of changing the runtime to 80/90 minutes?

Hi @DarrinG.72466 (Customer):
You can try the following solution.
Place a 'running' flag (true/false) in another Workflows table. Set 'running' to 'true' when the helper flow runs. Check the 'running' value before starting the main flow.
Set the 'running' value to 'false' after the helper finishes processing.