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

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