Periodically cleaning result list while adding pending exists

This commit is contained in:
Andrew Melton 2013-03-28 12:51:41 -04:00
parent 4db9e256cf
commit aa5eb73f2b

View File

@ -243,7 +243,9 @@ def verify_for_range(pool, when_max, callback=None):
results.append(result)
added += 1
if datetime.datetime.utcnow() > next_update:
LOG.info("Added %s exists to queue." % added)
values = ((added,) + clean_results())
msg = "N: %s, P: %s, S: %s, E: %s" % values
LOG.info(msg)
next_update = datetime.datetime.utcnow() + update_interval
return count