Skip to content

Commit

Permalink
fix: recycle db connections every hour so we dont get connection has …
Browse files Browse the repository at this point in the history
…gone away error
  • Loading branch information
halkeye committed Oct 19, 2023
1 parent b79b49e commit f6d0703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def authorize(enterprise_id, team_id, user_id, client: WebClient, logger):
authorize=authorize,
)

engine = create_engine(database_url, echo=False)
engine = create_engine(database_url, echo=False, pool_recycle=3600)

@app.command(os.getenv('SLASH_COMMAND', "/glossary"))
def glossary_command(ack, respond, body):
Expand Down

0 comments on commit f6d0703

Please sign in to comment.