← Back to team overview

openstack team mailing list archive

Re: eventlet weirdness

 

On 03/05/2012 08:30 PM, Adam Young wrote:
The only time sleep() as called from Python code is going to help you is
if you have a long running stretch of Python code, and you sleep() in
the middle of it.

That's exactly where the greenthread.sleep(0) call in question was used: inside a (potentially) long-running loop in _sync_power_states()...

Best,
-jay


References