[V1] Simplify stats logging (#14082)
Signed-off-by: Nick Hill <nhill@redhat.com>
This commit is contained in:
@@ -316,19 +316,10 @@ class EngineCoreProc(EngineCore):
|
||||
# Loop until process is sent a SIGINT or SIGTERM
|
||||
while True:
|
||||
# 1) Poll the input queue until there is work to do.
|
||||
if not self.scheduler.has_unfinished_requests():
|
||||
while True:
|
||||
try:
|
||||
req = self.input_queue.get(timeout=POLLING_TIMEOUT_S)
|
||||
self._handle_client_request(*req)
|
||||
break
|
||||
except queue.Empty:
|
||||
logger.debug("EngineCore busy loop waiting.")
|
||||
# Break out the loop so we can log_stats in step().
|
||||
if self.log_stats:
|
||||
break
|
||||
except BaseException:
|
||||
raise
|
||||
while not self.scheduler.has_unfinished_requests():
|
||||
logger.debug("EngineCore busy loop waiting.")
|
||||
req = self.input_queue.get()
|
||||
self._handle_client_request(*req)
|
||||
|
||||
# 2) Handle any new client requests.
|
||||
while not self.input_queue.empty():
|
||||
|
||||
Reference in New Issue
Block a user