Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "MySQL server has gone away" error #4

Merged
merged 1 commit into from Mar 4, 2016
Merged

Commits on Mar 4, 2016

  1. Fix "MySQL server has gone away" error

    After Django 1.6 with persistent database connection RQ worker is looses connection to database.
    
    RECOMMENDED SOLUTION: close the connection with from django.db import connection; connection.close() when you know that your program is going to be idle for a long time.
    
    https://code.djangoproject.com/ticket/21597#comment:29
    applecat committed Mar 4, 2016
    Configuration menu
    Copy the full SHA
    f984e32 View commit details
    Browse the repository at this point in the history