poll for when all docs are complete