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

Conversation

applecat
Copy link
Contributor

@applecat applecat commented Mar 4, 2016

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

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
mandx added a commit that referenced this pull request Mar 4, 2016
Fix "MySQL server has gone away" error
@mandx mandx merged commit 0f8af2d into mandx:master Mar 4, 2016
@mandx
Copy link
Owner

mandx commented Mar 4, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants