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
This commit is contained in:
parent
25a852d100
commit
5ae4d994b4
|
@ -18,8 +18,7 @@
|
|||
|
||||
import eventlet
|
||||
|
||||
if __name__ == "__main__":
|
||||
eventlet.monkey_patch()
|
||||
eventlet.monkey_patch()
|
||||
|
||||
import sys
|
||||
|
||||
|
|
Loading…
Reference in New Issue