Have a look at the following post, which may achieve what you are attempting to do. The logic will be similar for doing what you need.
However, Iβm not quite following your logic here.
Sounds like you should get a single run ID at a time, which would then enable the two following GET requests to follow in order without you having to create loops in code. Can you format your CSV file so there is one runID on each line? So the test runner can handle the loop.