nuove tipologie
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user