This isn't a web request, this is doing a loop blocking on the database retrieval of the submission. The logic here is that the task to retrieve results can be executed before the submission is actually saved to the database, so instead of failing prematurely, the process is allowed to retry a fixed number of times. If the submission is never saved to the database it will eventually fail and return an error.

This fixes one of the race conditions created by doing the "submit, check for results" process when the check for results happens before the submission is saved. (There is no HTTP here.)