make the job event bigint migration chunk size configurable

This commit is contained in:
Ryan Petrello
2020-03-27 09:28:10 -04:00
parent c8044b4755
commit 301d6ff616
2 changed files with 4 additions and 1 deletions

View File

@@ -692,7 +692,7 @@ def migrate_legacy_event_data(tblname):
with advisory_lock(f'bigint_migration_{tblname}', wait=False) as acquired:
if acquired is False:
return
chunk = 1000000
chunk = settings.JOB_EVENT_MIGRATION_CHUNK_SIZE
def _remaining():
try: