I make an API call and get structured data in a list
I call a backend workflow to save the items. Originally in parallel was fine
I got a request to number the items using unique ids and the parallel nature of workflows means I have to serialize the assignment of the unique ids.
I want to use the recursive method, but the plugin datatype is not available on backend workflows, so when I try to create the schedule API workflow on a list, I cant select the datatype.
What is the standard method to do this?
I was considering leaving the creation in parallel, and numbering afterwards because then the type exists and is selectable, but there isnt a reliable way to guarantee that all the items have been created in the DB before starting the next step.
Even incrementing a counter is not guaranteed to work, because two parallel threads can access the counter at the same time at start with 5, and add one, so the counter will be at 6, but two threads have run.
Also bubble needs a serialize this workflow checkbox. It shouldnt be hard to implement serial execution of workflows under the hood. Or we need mutexes/synchronize blocks to allow all threads to catchup.