Only begin one workflow when a previous one has been completed?

Hello!

Has anyone done this in the past?

Background:

There are 5 workflows I’ve built to process data, which includes processing data from one table and putting what’s been processed into another.

What I would like to achieve:

The data each time it’s processed is different in size, sometimes more, sometimes less rows, and typically takes 10 minutes to 60 (which is a lot, but I haven’t optimised it yet)

If one process begins before the previous one has been completed, the end result is incomplete.

What I’ve tried so far:

Manually setting. buttons for each process, clicking each one when I can see the previous one has been complete in the logs

Building a process where each workflow comes after the other, but it looks like it’s bubble would start one sometimes before the previous one has finished, especially if there are multiple workflows for each step (like going through a list in one step and committing changes in a second step - bubble would consider the first step as the one that’s complete)

Is there a way to hold off a step until the previous one is complete?

I’d try using backend workflows. Have the last step be to schedule the next workflow

If you are running this workflow on frontend only, you can put the last step to set a state (yes/no). And create a workflow to run only when this state is yes.

Does that work though? Reason I ask is that bubble rips through everything in the front end workflow so even if it is updating data it will continue on to the last action and update the state regardless of whether the update is done or not.

You need to separate in two workflows

The first do the first part and las action set a state of yes.

And you create another (second) that runs only when a condition is true, in case this condition is this custom state is yes

This topic was automatically closed after 70 days. New replies are no longer allowed.