Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Commit a29a708

Browse files
allow setting pool recycle with env var
Co-Authored-By: Max Meinhold <mxmeinhold@gmail.com>
1 parent 375709a commit a29a708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919

2020
# May fix SQLAlchemy losing connection to the database
21-
SQLALCHEMY_POOL_RECYCLE = 500
21+
SQLALCHEMY_POOL_RECYCLE = os.environ.get("SQLALCHEMY_POOL_RECYCLE", default=500)
2222

2323
# CSH_LDAP credentials
2424
LDAP_BIND_DN = os.environ.get("LDAP_BIND_DN", default="cn=quotefault,ou=Apps,dc=csh,dc=rit,dc=edu")

0 commit comments

Comments
 (0)