What I am trying to achieve: I have this workflow where a loop runs over a number of scenes. For each scene, an image is created, sent out to my telegram for approval (if declined, it recreates the image). Once approved, the workflow proceeds to save the file.
Problems:
In case of image declines and subsequent rounds of image creation, all are sent to the merge node resulting in only the 1st image (declined one) saved instead of subsequently generated one (approved one).
On the subsquent loop cycle, the merge doesn’t refresh and simply add more images to the queue.
Hey @Asim_Siddiqui, this happens because you’re sending the file to the Merge node before your approval logic, and it waits for a second input to arrive. You don’t need the Merge node there. If approved, just take the file from the Convert to File node to the Store Image node —if not, it won’t go down this path anyway.
Hey@Asim_Siddiqui, there is a issue in your workflow. You should just remove the Merge1 node , there is no need to add a merge node as you’ve got the approved photos by Swich1 node.