N
N
nano_e_t_42016-09-07 02:02:24
Flask
nano_e_t_4, 2016-09-07 02:02:24

How to set db connection timeout?

Hello everyone
Tell me how to set a timeout for a connection to the database? that is, for example, the ACCESS EXCLUSIVE sign is blocked by a lock, and the flash tries to make a select and the request falls off with a 504 code (the jinx returns)
the SQLALCHEMY_POOL_TIMEOUT parameter does not help for some reason :(
thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question