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

#79 close django db connection before fork #80

Merged
merged 1 commit into from
Sep 29, 2015
Merged

#79 close django db connection before fork #80

merged 1 commit into from
Sep 29, 2015

Conversation

Koed00
Copy link
Owner

@Koed00 Koed00 commented Sep 29, 2015

The sentinel saves a statistic to the cache provider just before forking the workers. If this cache provider is a database backend, the connection stays open and gets forked and it crashes. Solution is to close any db connection before forking.

The sentinel saves a statistic to the cache provider just before forking the workers. If this cache provider is a database backend, the connection stays open and gets forked and it crashes. Solution is to close any db connection before forking.
@codecov-io
Copy link

Current coverage is 95.83%

Merging #80 into master will not affect coverage as of 9f575c4

@@            master     #80   diff @@
======================================
  Files           37      37       
  Stmts         2160    2161     +1
  Branches         0       0       
  Methods          0       0       
======================================
+ Hit           2070    2071     +1
  Partial          0       0       
  Missed          90      90       

Review entire Coverage Diff as of 9f575c4

Powered by Codecov. Updated on successful CI builds.

Koed00 added a commit that referenced this pull request Sep 29, 2015
#79  close django db connection before fork
@Koed00 Koed00 merged commit 0023699 into master Sep 29, 2015
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.

2 participants