Trigger when Schedule on a list or loop by scheduled endpoint ends

Hello everyone!

I’m building an app that makes some calculations on lists of things by creating them first. I’m doing it by loop of scheduled endpoints actions, first time tried schedule on a list, but both methods doesn’t allow me to know when ALL of scheduled processes ends because any of them can delay or be faster than others and no way to check iteration step and compare with average amount of scheduled actions.

Hope there is something that can help me)

Do a recursive backend workflow. This will make it so it loops through all the items until it hits the last one (you set up conditionals for this)…then you can have another step that will do something different when the list has been run all the way through.

I tried, loop = recursive bwf, in my case it takes 60s to calculate all list :frowning: Not applicable

Do these calculations need to be ‘real time’ and visible to the user while they are on the page, or is it calculations that can be done ‘behind the scenes’?

Yes, real time calculations, all pain because of this.

There are some pretty powerful solutions, all are a bit complicated to get accustomed to, but once familiar are pretty straight forward in how they work.

Best one for your use case is probably the List Shifter Plugin, which will process a list very quickly (works like a recursive workflow but server side and much faster)…the List Shifter Plugin has a process list workflow action that incorporates math (uses javascript for this) and you can set up some pretty complex calculations in that process list action.

Check out the plugin showcase page and read through the thread as well as watch the videos loaded by the developer to try and get a handle on how to use it.

It also has a workflow action ‘when list is processed’ which is triggered when the processed action is finished.

1 Like

Yes, @mokrinskiy.denis, learn to use List Shifter, especially the PROCESS List action. There’s no need to use backend processes just for simple looping/array-based computations.

Vanilla Bubble forces you to do that, but it’s (quite simply) a poor and costly way to solve the problem.

Sorry, I don’t understand, does this plugin will help me to know when a list of things been created from start to end? Now the problem with loop on bwf is in parallel scheduled wf, if I have 10 things to create, it sometimes doesn’t mean that last iteration is end of process because sometimes scheduled, for example, 4-th iteration from 10 lasts more that 10-th and, as a result, 10-th end is not the end of a loop, but 4-th is.