Skip to content

Commit

Permalink
fix: set sqlalchemy connection max_overflow unlimited, until task queue
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 25, 2024
1 parent 884531f commit 328c4d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/backend/app/db/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@

from app.config import settings

engine = create_engine(settings.FMTM_DB_URL.unicode_string())
engine = create_engine(
settings.FMTM_DB_URL.unicode_string(),
pool_size=20,
max_overflow=-1,
)
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)

Base = declarative_base()
Expand Down

0 comments on commit 328c4d5

Please sign in to comment.