[elbe-devel] [PATCH] elbepack: db: increase timeout to 60 seconds

Thomas Weißschuh thomas.weissschuh at linutronix.de
Mon Nov 18 12:09:47 CET 2024


Complex, IO heavy builds may hog the disc enough after a build for the
database operation to time out.
Increase the timeout.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/db.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/db.py b/elbepack/db.py
index eb3a8c6dd123e13826ef009ad9ef531483632ce1..ee07380a967c9014698e61e6d7f6af3932289db1 100644
--- a/elbepack/db.py
+++ b/elbepack/db.py
@@ -100,7 +100,7 @@ class ElbeDB:
 
     def __init__(self):
         engine = create_engine(self.__class__.db_location,
-                               connect_args={'timeout': 30})
+                               connect_args={'timeout': 60})
         Base.metadata.create_all(engine)
         smaker = sessionmaker(bind=engine)
         self.session = scoped_session(smaker)

---
base-commit: fd48f02889d0de2714489df27f43429dbe86260d
change-id: 20241118-db-timeout-62111bb2b080

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh at linutronix.de>



More information about the elbe-devel mailing list