Is this something that you have from the page scheduling backend workflow 1 (BEW1), and then after BEW1 finishes you want BEW2 to run and after that finishes run BEW3? And you want for each BEW1, 2 and 3 to perform some processing of data on the employees you have in the list after the query on the page?
Not exactly that, but in the backend workflows you have the ‘custom workflow’ trigger available, which works differently than other workflows in that all actions in it will complete before another step in a series of actions you trigger the custom workflow in.
For example a 5 step series of actions. Step 1 triggers and doesn’t necessarily complete before step 2 triggers which doesn’t necessarily complete before step 3 triggers (but step 3 is a custom workflow) (imagine the custom workflow has 2 actions) the two actions in the custom workflow will trigger and complete before Step 4 is triggered.
I use this in my apps when I need to refresh some API credentials before running the API calls in the backend to ensure my API credentials are refreshed and saved properly before the API call is attempted.
Do you know how you will determine if all 3 are needed or not? Some kind of condition that would make it true that you don’t need BEW2 or 3 for example?
Bubble gives you 5 minutes to complete a workflow before it times out…most important variable maybe on the amount of data being processed on the list rather than the length of the list.
From my perspective, the best approach when working with lists in backend workflows is to create recursive backend workflows, so that you are processing a single list item at a time, and therefor have 5 minutes to process the data of that single item, before looping back and processing the next item in the list.
The amount of time it would take for running the backend workflow recursively versus processing the entire list at one shot I believe would be the same, but with recursive approach, you are far less likely to run the risk of timing out.
When I first ran into an issue with backend workflow running into issues processing a list, a Bubble engineer recommended I use a recursive backend workflow instead and I’ve never used any other approach since.