mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-05-11 10:33:18 +08:00
fix(system): extend graceful shutdown timeout to 180 seconds
This commit is contained in:
@@ -334,8 +334,8 @@ class SystemHelper(ConfigReloadMixin):
|
||||
"""
|
||||
|
||||
def monitor_thread():
|
||||
time.sleep(30) # 等待30秒
|
||||
logger.warning("优雅退出超时30秒,使用Docker API强制重启...")
|
||||
time.sleep(180) # 等待180秒
|
||||
logger.warning("优雅退出超时180秒,使用Docker API强制重启...")
|
||||
try:
|
||||
SystemHelper._docker_api_restart()
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user