Django で MySQL のタイムアウトを設定する
code:python
DATABASES
'default'
'options'
'init_command'
='SET max_execution_time=3000'
init_command で MySQL のセッションに渡してあげるのがはやそう
https://stackoverflow.com/questions/56002258/i-use-pymysql-to-execute-query-in-mysql-but-why-the-process-is-still-alive-afte
* client側 の read_timeout だと、Python側は切断しても、MySQL側でのプロセスは走り続けてしまう可能性がある
#python
#django
#mysql