Skip to content
Snippets Groups Projects

update haf for slow processing alarm (haf#245)

Open Marcin requested to merge mi/haf#259_slow_processing_alarm into develop
Files
3
@@ -12,8 +12,8 @@ def prepare_app_context(db: Db) -> None:
@@ -12,8 +12,8 @@ def prepare_app_context(db: Db) -> None:
if not ctx_present:
if not ctx_present:
LIMIT_FOR_PROCESSED_BLOCKS = 1000
LIMIT_FOR_PROCESSED_BLOCKS = 1000
synchronization_stages = f"""ARRAY[
synchronization_stages = f"""ARRAY[
( 'MASSIVE_WITHOUT_INDEXES', {ONE_WEEK_IN_BLOCKS}, {LIMIT_FOR_PROCESSED_BLOCKS} )
hive.stage( 'MASSIVE_WITHOUT_INDEXES', {ONE_WEEK_IN_BLOCKS}, {LIMIT_FOR_PROCESSED_BLOCKS} )
, ( 'MASSIVE_WITH_INDEXES', 101, {LIMIT_FOR_PROCESSED_BLOCKS} )
, hive.stage( 'MASSIVE_WITH_INDEXES', 101, {LIMIT_FOR_PROCESSED_BLOCKS} )
, hive.live_stage()
, hive.live_stage()
]::hive.application_stages"""
]::hive.application_stages"""
log.info(f"No application context present. Attempting to create a '{SCHEMA_NAME}' context...")
log.info(f"No application context present. Attempting to create a '{SCHEMA_NAME}' context...")
Loading