瀏覽代碼

Fix logging delay for worker task processes

This patch removes the sleep added to avoid high CPU usage caused
by an eventual infinite loop. It's not the case of infinite loops
on logging queue, therefore it is safe to remove it.
Daniel Vincze 1 年之前
父節點
當前提交
accf81430e
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      coriolis/worker/rpc/server.py

+ 0 - 1
coriolis/worker/rpc/server.py

@@ -144,7 +144,6 @@ class WorkerServerEndpoint(object):
             except queue.Empty:
             except queue.Empty:
                 if not p.is_alive():
                 if not p.is_alive():
                     break
                     break
-            time.sleep(.2)
 
 
     def _get_custom_ld_path(self, original_ld_path, extra_library_paths):
     def _get_custom_ld_path(self, original_ld_path, extra_library_paths):
         if not isinstance(extra_library_paths, list):
         if not isinstance(extra_library_paths, list):