mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 03:17:38 -02:30
make the job event bigint migration chunk size configurable
This commit is contained in:
@@ -692,7 +692,7 @@ def migrate_legacy_event_data(tblname):
|
|||||||
with advisory_lock(f'bigint_migration_{tblname}', wait=False) as acquired:
|
with advisory_lock(f'bigint_migration_{tblname}', wait=False) as acquired:
|
||||||
if acquired is False:
|
if acquired is False:
|
||||||
return
|
return
|
||||||
chunk = 1000000
|
chunk = settings.JOB_EVENT_MIGRATION_CHUNK_SIZE
|
||||||
|
|
||||||
def _remaining():
|
def _remaining():
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -197,6 +197,9 @@ JOB_EVENT_WORKERS = 4
|
|||||||
# The maximum size of the job event worker queue before requests are blocked
|
# The maximum size of the job event worker queue before requests are blocked
|
||||||
JOB_EVENT_MAX_QUEUE_SIZE = 10000
|
JOB_EVENT_MAX_QUEUE_SIZE = 10000
|
||||||
|
|
||||||
|
# The number of job events to migrate per-transaction when moving from int -> bigint
|
||||||
|
JOB_EVENT_MIGRATION_CHUNK_SIZE = 1000000
|
||||||
|
|
||||||
# Disallow sending session cookies over insecure connections
|
# Disallow sending session cookies over insecure connections
|
||||||
SESSION_COOKIE_SECURE = True
|
SESSION_COOKIE_SECURE = True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user