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

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