Swap sequence checkForCompletedRequest - need call function when $outstanding_requests > $max_request