mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
fix server restart
This commit is contained in:
@@ -220,7 +220,7 @@ if __name__ == "__main__":
|
||||
state = f'job="{instance.state.job}" {instance.state.job_no}/{instance.state.job_count}'
|
||||
installer.log.debug(f'Server alive={alive} requests={requests} memory {get_memory_stats()} {state}')
|
||||
if not alive:
|
||||
if instance.wants_restart:
|
||||
if uv.wants_restart:
|
||||
installer.log.info('Server restarting...')
|
||||
uv, instance = start_server(immediate=False, server=instance)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user