mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix task update polling
Fix task update polling after a change while linting broke it :/
This commit is contained in:
parent
cd33383cd2
commit
1bf40ffda9
@ -140,7 +140,8 @@ class helpers_management:
|
|||||||
#************************************************************************************************
|
#************************************************************************************************
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_latest_hosts_stats():
|
def get_latest_hosts_stats():
|
||||||
query = Host_Stats.select().order_by(Host_Stats).get()
|
#pylint: disable=no-member
|
||||||
|
query = Host_Stats.select().order_by(Host_Stats.id.desc()).get()
|
||||||
return model_to_dict(query)
|
return model_to_dict(query)
|
||||||
|
|
||||||
#************************************************************************************************
|
#************************************************************************************************
|
||||||
|
@ -452,7 +452,6 @@ class TasksManager:
|
|||||||
'mem_percent': host_stats.get('mem_percent'),
|
'mem_percent': host_stats.get('mem_percent'),
|
||||||
'mem_usage': host_stats.get('mem_usage')
|
'mem_usage': host_stats.get('mem_usage')
|
||||||
})
|
})
|
||||||
time.sleep(2)
|
|
||||||
|
|
||||||
def log_watcher(self):
|
def log_watcher(self):
|
||||||
self.controller.servers.check_for_old_logs()
|
self.controller.servers.check_for_old_logs()
|
||||||
|
Loading…
Reference in New Issue
Block a user