update docker and progress monitoring

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2024-11-16 10:49:08 -05:00
parent 4e9e04b24c
commit 59cd08f5da
9 changed files with 88 additions and 18 deletions
+1 -3
View File
@@ -258,9 +258,7 @@ def main():
alive = False
requests = 0
if round(time.time()) % 120 == 0:
state = f'job="{instance.state.job}" {instance.state.job_no}/{instance.state.job_count}' if instance.state.job != '' or instance.state.job_no != 0 or instance.state.job_count != 0 else 'idle'
uptime = round(time.time() - instance.state.server_start)
installer.log.debug(f'Server: alive={alive} jobs={instance.state.total_jobs} requests={requests} uptime={uptime} memory={get_memory_stats()} backend={instance.backend} state={state}')
installer.log.debug(f'Server: alive={alive} requests={requests} memory={get_memory_stats()} {instance.state.status()}')
if not alive:
if uv is not None and uv.wants_restart:
installer.log.info('Server restarting...')