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

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