I have a mongoDB instance which has a set of data uploaded every 24 hours. There is then a set of aggregation pipelines which need to run to clean and prepare the data. The restrictions of stitch have meant I need to split the pipeline into a number of functions each of which will complete in under 90 seconds. Now I’m at the stage where I need to run these 5 scripts one after the other. Triggering them from database updates is one option but I don’t want script 2 firing before script 1 has completed.
Question: Is there a good way to fire multiple functions in order , one at a time? The entire set of scripts takes 7 minutes to run.