Closed qinxuye closed 3 years ago
The cause is that when executing another tileable inside a remote call, the ecalc process yield to that execution while sys.stdout
kept rewritten. When another remote call is executed and print
is called, two wrapped stdout objects created in different threads will be called inside one thread, which causes the problem.
Describe the bug
Print in remote functions leads to gevent error: cannot switch to a different thread.
To Reproduce To help us reproducing this bug, please provide information below: