I think the best way to approach this is to explain what I’m trying to do, what the problem is., and then what i think a good solution (the idea) would be.
Although I try to avoid it, I have a page that requires I create multiple things at a time and add them to a single list. The best way to do this is to loop an API workflow on it self until it is complete then add the created things to the list only when all items are created.
(i have a ‘Created Things’ list which i add to when scheduling the next workflow. See below screen shot if this is not clear what I’m doing. this is my workflow to schedule the creation of the next thing)
The user is able to trigger the same workflow described above not long after the first one, which will then have bubble running two (or more!) workflows which will result in adding multiple lists to a single list in a small time frame
Bubble doesn’t handle this well & can result in data loss or some funky things happening with the list. Things get added then removed then added again, and its just buggy and untrust worthy.
I thought i read a post somewhere someone from the Bubble team says this a known issue but I may be wrong.
The Solution (or at least an idea):
Add Two new Workflow Actions.
Action #1 will be called: Check Workflow Que
And will only have one parameter which will be a Thing (can be anything)
When this Action runs - this will happen:
The Workflow will ask Bubble if there are any more API Workflows in that Thing’s Que.
If No > Continue the Workflow
If Yes > Terminate the Workflow & Add the API Workflow to the Que
Action #2 will be called: Run Next Workflow in Que
This will have two parameters
Thing (should be the same as the Thing in action #1)
Delay (to help spread out Workflows if desired)
As you may have guessed, this Action will fire the next API Workflow in the Que.
I feel this would be a not so complicated thing to add to Bubble but I won’t say I know that for sure.
All I do know is that my app would benefit in multiple areas if I could structure my workflows like this.
I have an idea for a large scale project and i dont feel comfortable with bubble specifically becuase it involves multiple users adding lists to lists constantly.
Really hope the Bubble team takes this one into consideration
If anyone has any similar work arounds to my issue then i’d also love to hear them!