Skip to content

Commit

Permalink
elbepack: db: increase timeout to 60 seconds
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
t-8ch committed Nov 18, 2024
1 parent 48c2883 commit 90cb11e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elbepack/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 90cb11e

Please sign in to comment.