gestione GD

This commit is contained in:
2025-07-27 19:25:42 +02:00
parent cee070d237
commit dc20713cad
3 changed files with 8 additions and 4 deletions

View File

@@ -15,4 +15,5 @@ FLAG_TO_TIMESTAMP = {
WorkflowFlags.SENT_ELAB_DATA: "sent_elab_at"
}
# Dimensione degli split della matrice per il caricamento
BATCH_SIZE = 1000

View File

@@ -84,7 +84,7 @@ async def load_data(cfg: object, matrice_valori: list, pool: object) -> bool:
except Exception as e:
await conn.rollback()
logger.error(f"Error: {e}.")
logger.error(f"Matrice valori da inserire: {batch}.")
# logger.error(f"Matrice valori da inserire: {batch}.")
if e.args[0] == 1213: # Deadlock detected
logger.warning(