Merge pull request #173 from internetarchive/increase_batch_sec

tune MIN_BATCH_SEC, MAX_BATCH_SEC for fewer dedup errors
This commit is contained in:
Barbara Miller 2022-06-24 11:13:18 -07:00 committed by GitHub
commit d253ea85c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,8 +175,10 @@ class BaseStandardPostfetchProcessor(BasePostfetchProcessor):
class BaseBatchPostfetchProcessor(BasePostfetchProcessor):
MAX_BATCH_SIZE = 500
MAX_BATCH_SEC = 30
MIN_BATCH_SEC = 10
MAX_BATCH_SEC = 60
MIN_BATCH_SEC = 30
# these updated batch seconds values have resulted in fewer reported dedup
# errors and otherwise have worked well in qa
def _get_process_put(self):
batch = []