nacos-group / nacos-group/nacos-sdk-python

协程与watcher的冲突问题

Open
#114 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
471
Forks
155
PR merge metrics
No merged PRs in 30d

Description

在使用gunicorn的时候,可以指定worker-class。考虑到性能,我一直使用的协程eventlet,然而这回导致watcher不进行任何响应。如果改为一般的线程则没有问题。请问我应该如何同时使用协程和该sdk呢?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported behavior with gunicorn using the eventlet worker-class, then compare it with the ordinary threaded worker. Trace the SDK watcher entry point and determine whether the watcher responds under coroutine workers; done means the conflict is fixed or the supported configuration and limitation are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.