Hey within my team we have adopted Patrik's approach with one caveat.. set variable 3 would be outside of the Until activity. Otherwise we would keep overriding url1 value every run.
Our ADF pipeline
btw.. thanks Patrik, your answer was very helpful for us