You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the loop timed task,the mysql default connection time is set to 25 hours.But sometimes there will still be a mysql connection error。Perhaps the solution is to use a method similar to mysql_ping() to do a check before each data entry, wake up the connection, what should I do?
Details of my error:
2019-03-18 08:00:00 base.run_job: Running job "get_goods (trigger: cron[hour='8', minute='0', second='0'], next run at: 2019-03-18 08:00:00 CST)" (scheduled at 2019-03-18 08:00:00+08:00)
2019-03-18 08:00:00 get_goods: ***********************************mytask start
2019-03-18 08:00:00 base.run_job: Job "get_goods (trigger: cron[hour='8', minute='0', second='0'], next run at: 2019-03-19 08:00:00 CST)" raised an exception
Traceback (most recent call last):
......
django.db.utils.OperationalError: (2006, 'MySQL server has gone away')
The text was updated successfully, but these errors were encountered:
Using the loop timed task,the mysql default connection time is set to 25 hours.But sometimes there will still be a mysql connection error。Perhaps the solution is to use a method similar to mysql_ping() to do a check before each data entry, wake up the connection, what should I do?
Details of my error:
2019-03-18 08:00:00 base.run_job: Running job "get_goods (trigger: cron[hour='8', minute='0', second='0'], next run at: 2019-03-18 08:00:00 CST)" (scheduled at 2019-03-18 08:00:00+08:00)
2019-03-18 08:00:00 get_goods: ***********************************mytask start
2019-03-18 08:00:00 base.run_job: Job "get_goods (trigger: cron[hour='8', minute='0', second='0'], next run at: 2019-03-19 08:00:00 CST)" raised an exception
Traceback (most recent call last):
......
django.db.utils.OperationalError: (2006, 'MySQL server has gone away')
The text was updated successfully, but these errors were encountered: