added for loop to continue scan after job that has passed max retries is reached