Browse Source

Fix eventlet monkey_patch

1. What is the problem
After patch 416771 is merged, we change to use registered tricircle
command to start our api and xjob instead of python script, this
introduces a problem that eventlet.monkey_patch is not correctly
executed so xjob fails to handle RPC request.

2. What is the solution to the problem
Directly execute eventlet.monkey_patch in cmd/xjob.py without
checking if it's imported as a module or run by python script.

3. What the features need to be implemented to the Tricircle
No new features

Change-Id: I56d1491b0353f64beeb75d652bbd01cdf932b044
changes/39/418639/1
xiulin yin 5 years ago
parent
commit
5ae4d994b4
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      tricircle/cmd/xjob.py

+ 1
- 2
tricircle/cmd/xjob.py View File

@ -18,8 +18,7 @@
import eventlet
if __name__ == "__main__":
eventlet.monkey_patch()
eventlet.monkey_patch()
import sys


Loading…
Cancel
Save