Skip to content
New issue

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

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

Already on GitHub? # to your account

Thread locking #14

Open
terzano opened this issue Apr 24, 2020 · 5 comments
Open

Thread locking #14

terzano opened this issue Apr 24, 2020 · 5 comments

Comments

@terzano
Copy link

terzano commented Apr 24, 2020

I am experiencing a thread lock and the application won't exit. I am using pyMySQL 0.9.3 and PyMySQLPool 1.0.6.
Any suggestions? Thanks

@terzano terzano changed the title Threading locking Thread locking Apr 24, 2020
@prprprus
Copy link
Owner

Hi @terzano

Can you provide a reproducible demo?

@desarrolloinfotic
Copy link

desarrolloinfotic commented Jun 24, 2020

I have the same problem

from pymysqlpool.pool import Pool


conf = {
    'host': 'remotehost',
    'port': 3306,
    'user': 'user',
    'password': '***',
    'db': 'mydb'
}
pool = Pool(**conf, min_size=1, max_size=3, timeout=10, autocommit=True)
pool.init()
pool.destroy()
# The script does not end
  • pymysql-pooling: 1.0.6
  • PyMySQL: 0.9.3
  • Python: 3.8

@gwasserfall
Copy link

gwasserfall commented Jul 9, 2020

+1

I fixed mine by reverting to python3.6..

@haydenkim01
Copy link

I think this is not a thread locking problem. It's just because there is a thread keeps running after the main thread is finished. And this problem is already solved by the PR #7 , but it's not updated at Pypi(https://pypi.org/project/pymysql-pooling/). I think Pypi update is needed. @prprprus

@jcavalca
Copy link

jcavalca commented May 3, 2021

Worked for me when adding the daemon parameter in pool.py from PR #7 , thank you! How come is this still not updated at Pypi?

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

No branches or pull requests

6 participants