reverse previous commit to break into separate PR

Signed-off-by: jessicamack <jmack@redhat.com>
This commit is contained in:
jessicamack 2023-04-25 15:05:34 -04:00
parent 3025ef0dfa
commit 6ea3b20912

View File

@ -58,11 +58,11 @@ class Command(BaseCommand):
sys.exit(1)
def do_hearbeat_loop(self):
while True:
with pg_bus_conn(new_connection=True) as conn:
with pg_bus_conn(new_connection=True) as conn:
while True:
logger.debug('Sending heartbeat')
conn.notify('web_heartbeet', self.construct_payload())
time.sleep(settings.BROADCAST_WEBSOCKET_BEACON_FROM_WEB_RATE_SECONDS)
time.sleep(settings.BROADCAST_WEBSOCKET_BEACON_FROM_WEB_RATE_SECONDS)
def handle(self, *arg, **options):
self.print_banner()