Make registry thread sleep

This patch adds a required sleep of 1 second in each
registry thread loop to prevent runaway cpu usage
This commit is contained in:
Hemna 2024-03-07 08:37:09 -05:00
parent 44a98850c9
commit 5d3f42f411
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import logging
import time
from oslo_config import cfg
import requests
@ -50,4 +51,5 @@ class APRSRegistryThread(aprsd_threads.APRSDThread):
except Exception as e:
LOG.error(f"Failed to send registry info: {e}")
time.sleep(1)
return True