nuove tipologie

This commit is contained in:
2025-06-11 22:13:30 +02:00
parent ce6b55d2f9
commit e939846812
8 changed files with 47 additions and 35 deletions

View File

@@ -50,8 +50,8 @@ async def get_next_csv_atomic(pool, table_name):
SET locked = 1
WHERE id = %s
""", (result[0],))
await conn.commit()
await conn.commit()
return result
async def worker(worker_id: int, cfg: object, pool) -> None:
@@ -149,7 +149,9 @@ async def main():
password=cfg.dbpass,
db=cfg.dbname,
minsize=1,
maxsize=cfg.max_threads*4
maxsize=cfg.max_threads*4,
pool_recycle=3600,
autocommit=True
)
# Avvia i worker