Retry on 307 in query_for_completion as well.