Merge branch 'bug/CPU-Usage' into 'dev'

Add sleep to realtime - Reduce CPU load.

See merge request crafty-controller/crafty-commander!228
This commit is contained in:
Andrew 2022-03-26 23:48:18 +00:00
commit dc72ac5c3e

View File

@ -557,6 +557,7 @@ class TasksManager:
"mem_usage": host_stats.get("mem_usage"),
},
)
time.sleep(1)
def log_watcher(self):
self.controller.servers.check_for_old_logs()