Blame SOURCES/0002-Do-not-busy-wait-when-playbook-is-running.patch

9e5510
From 1f417d0241af6fd15697da55ed3f44c655567f7e Mon Sep 17 00:00:00 2001
9e5510
From: Jeremy Audet <audet.jeremy@pm.me>
9e5510
Date: Thu, 4 Aug 2022 17:38:51 -0400
9e5510
Subject: [PATCH] Do not busy-wait when playbook is running
9e5510
9e5510
JIRA: RHELPLAN-130334
9e5510
Resolves: rhbz#2115848
9e5510
9e5510
(cherry picked from commit 579a67fba5ea60543a72b118e5644206c6ba720b)
9e5510
---
9e5510
 rhc_worker_playbook/server.py | 1 +
9e5510
 1 file changed, 1 insertion(+)
9e5510
9e5510
diff --git a/rhc_worker_playbook/server.py b/rhc_worker_playbook/server.py
9e5510
index 8fa393f..8e9826f 100644
9e5510
--- a/rhc_worker_playbook/server.py
9e5510
+++ b/rhc_worker_playbook/server.py
9e5510
@@ -235,6 +235,7 @@ class WorkerService(yggdrasil_pb2_grpc.WorkerServicer):
9e5510
         elapsedTime = 0
9e5510
         startTime = time.time()
9e5510
         while runnerThread.is_alive():
9e5510
+            time.sleep(1)
9e5510
             elapsedTime = time.time() - startTime
9e5510
             if elapsedTime >= response_interval:
9e5510
                 # hit the interval, post events