Re: Close database connection for long running django-admin command

2017-11-01 Thread 18626427054
Did you solve this problem? On Thursday, August 25, 2016 at 1:16:36 AM UTC+8, Charanpal Dhanjal wrote: > > Hi all, > > I am using GeoDjango and I have a django-admin command that does some > route calculations for approximately 24 hours and then saves the results to > a MySQL database. Unfortuna

Close database connection for long running django-admin command

2016-08-24 Thread Charanpal Dhanjal
Hi all, I am using GeoDjango and I have a django-admin command that does some route calculations for approximately 24 hours and then saves the results to a MySQL database. Unfortunately the database connection times out after 8 hours resulting in: django.db.utils.OperationalError: (2006, 'MySQL