Proper http checking loop?

Hi all, I can’t get this working, the input from “generate video” node is just http 5x and the check status should do 5x check based on the ID from GenerateVideo… then it aggregate the results to single list and do some code check if all are the same “completed” if not it goes to wait… and should repeat the loop… but does not it fails because the input to check status is from wait… and if I pipe all the values to wait as well, i get issue where the json can’t match the values again… there must be simpler way to check http and wait for results…

In a similar situation, the only way I could get a “clean” status polling loop is to move it out into its own workflow and call that with Execute Sub-Workflow as a single step in the main workflow. That made the items in the main workflow pass more directly from step to step without the referential complications of the looping part.

Try moving your polling loop into its own, separate workflow.

Here’s an example of a main workflow, and a sub-workflow that does the polling loop.

In the meantime, if this turns out to be the technique you needed, please mark this post as the Solution.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.