A
A
apiwi2020-06-12 15:42:50
MySQL
apiwi, 2020-06-12 15:42:50

Falling asleep in the database, how to fix it?

There is a python vk bot, with all users with whom it communicates, it adds phpMyAdmin to the table. The code itself is on Heroku. After 20 minutes, as I understand it, the server falls asleep, how to fix it? I climbed through all the settings and did not find wait timeout anywhere, etc.
I know there are many such topics. But there are no good answers. thanks for the help

2020-06-12T11:57:58.180218+00:00 app[worker.1]: Бот запущен
2020-06-12T12:32:26.096888+00:00 app[worker.1]: error (start): (2013, 'Lost connection to MySQL server during query')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Karasik, 2020-06-12
@apiwi

This cannot be fixed in the free plan.
As far as I understand, the only workaround is to prevent inactivity > 30 minutes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question