taosdata / taosdata/taos-connector-python
Allow threads
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 61
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
I am using this in an application where I have other threads running beside a thread that inserts data into TDEngine using the connector. When I do anything with this connector, it blocks any other threads from executing. In particular, when I use the connect() function but TDengine isn't running or there is some other error, the library holds the GIL so none of my other threads can run while waiting for the timeout to expire.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the connector's connect() path and trace how connection errors and timeout waits interact with the Python GIL. Check the behavior when TDengine is unavailable, then verify that unrelated Python threads continue running during the wait and that existing connection behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100