There is an option to not end the thread even though the content in the resource is gone, and there is another way to have infinite resources, you can copy and paste the same content over several lines until you find the maximum number you want to run the script. Then the script can terminate by the "success" number set at the top or when the amount of rows entered in your Resource ends.
0_1545647561179_0beb3c4d-e19d-4111-95e0-703c34484e66-image.png