increase server delay
This commit is contained in:
@@ -129,7 +129,7 @@ async def restart_service():
|
|||||||
|
|
||||||
if hostname == "afsar":
|
if hostname == "afsar":
|
||||||
async def delayed_restart():
|
async def delayed_restart():
|
||||||
await asyncio.sleep(1) # Wait 1 second
|
await asyncio.sleep(settings.restart_delay)
|
||||||
try:
|
try:
|
||||||
result = await asyncio.create_subprocess_exec(
|
result = await asyncio.create_subprocess_exec(
|
||||||
"sudo", "supervisorctl", "restart", "llm-api-mcphost",
|
"sudo", "supervisorctl", "restart", "llm-api-mcphost",
|
||||||
|
|||||||
Reference in New Issue
Block a user