Skip to content

Commit

Permalink
控制节点时,不要等待超时
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Dec 21, 2023
1 parent 56e5f54 commit 3d7d913
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public async Task<ActionResult> InstallFramework(String ver, String baseUrl)
var node = bf.FindByKey(item.ToInt());
if (node != null && !node.Code.IsNullOrEmpty())
{
ts.Add(_starFactory.SendNodeCommand(node.Code, "framework/install", args, 30 * 24 * 3600, 5));
ts.Add(_starFactory.SendNodeCommand(node.Code, "framework/install", args, 30 * 24 * 3600, 0));

}
}
Expand Down
6 changes: 3 additions & 3 deletions Stardust.Web/Areas/Nodes/Controllers/NodeOnlineController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public async Task<ActionResult> CheckUpgrade()
var online = NodeOnline.FindById(item.ToInt());
if (online?.Node != null)
{
ts.Add(_starFactory.SendNodeCommand(online.Node.Code, "node/upgrade", null, 600, 5));
ts.Add(_starFactory.SendNodeCommand(online.Node.Code, "node/upgrade", null, 600, 0));
}
}

Expand All @@ -143,7 +143,7 @@ public async Task<ActionResult> Restart()
var online = NodeOnline.FindById(item.ToInt());
if (online?.Node != null)
{
ts.Add(_starFactory.SendNodeCommand(online.Node.Code, "node/restart", null, 600, 5));
ts.Add(_starFactory.SendNodeCommand(online.Node.Code, "node/restart", null, 600, 0));
}
}

Expand All @@ -162,7 +162,7 @@ public async Task<ActionResult> Reboot()
var online = NodeOnline.FindById(item.ToInt());
if (online?.Node != null)
{
ts.Add(_starFactory.SendNodeCommand(online.Node.Code, "node/reboot", null, 600, 5));
ts.Add(_starFactory.SendNodeCommand(online.Node.Code, "node/reboot", null, 600, 0));
}
}

Expand Down

0 comments on commit 3d7d913

Please sign in to comment.