Periodically cleaning result list while adding pending exists
This commit is contained in:
parent
4db9e256cf
commit
aa5eb73f2b
@ -243,7 +243,9 @@ def verify_for_range(pool, when_max, callback=None):
|
|||||||
results.append(result)
|
results.append(result)
|
||||||
added += 1
|
added += 1
|
||||||
if datetime.datetime.utcnow() > next_update:
|
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
|
next_update = datetime.datetime.utcnow() + update_interval
|
||||||
|
|
||||||
return count
|
return count
|
||||||
|
Loading…
x
Reference in New Issue
Block a user