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

the new DjangoWorker manages django.db.connections cleanup with the same policy of Django [see #216] #217

Closed
wants to merge 2 commits into from

Conversation

depaolim
Copy link
Contributor

@depaolim depaolim commented Feb 7, 2017

see #216

@depaolim
Copy link
Contributor Author

depaolim commented Feb 7, 2017

Please, don't merge this PR. See #216

try:
super(DjangoWorker, self).perform_job(job, queue)
finally:
close_old_connections()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need to call close_old_connection() after perform_job?

not necessary
@depaolim depaolim closed this Feb 13, 2017
@depaolim depaolim deleted the ticket_216 branch February 15, 2017 14:01
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