mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 16:36:53 +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():
|
def monitor_thread():
|
||||||
time.sleep(30) # 等待30秒
|
time.sleep(180) # 等待180秒
|
||||||
logger.warning("优雅退出超时30秒,使用Docker API强制重启...")
|
logger.warning("优雅退出超时180秒,使用Docker API强制重启...")
|
||||||
try:
|
try:
|
||||||
SystemHelper._docker_api_restart()
|
SystemHelper._docker_api_restart()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user