修复了全局节点连接异常异常。

This commit is contained in:
fengjiayi
2025-07-29 14:25:31 +08:00
parent acb15c323e
commit 77160feaeb
66 changed files with 1719 additions and 1342 deletions

View File

@@ -3,6 +3,7 @@ using Serein.Library;
using Serein.Library.Api;
using Serein.Library.Utils;
using Serein.NodeFlow.Model;
using Serein.NodeFlow.Model.Nodes;
using Serein.NodeFlow.Tool;
using System;
using System.Collections.Concurrent;
@@ -285,7 +286,7 @@ namespace Serein.NodeFlow.Services
checkpoints["执行流程"] = sw.Elapsed;
if (context.IsRecordInvokeInfo)
if (context.IsRecordInvokeInfo && false)
{
var invokeInfos = context.GetAllInvokeInfos();
_ = Task.Delay(100).ContinueWith(async (task) =>
@@ -309,9 +310,7 @@ namespace Serein.NodeFlow.Services
SereinEnv.WriteLine(InfoType.INFO, $"平均耗时:{total / invokeInfos.Count}");
SereinEnv.WriteLine(InfoType.INFO, $"总耗时:{total}");
}
});
});
}
@@ -324,6 +323,7 @@ namespace Serein.NodeFlow.Services
_ = Task.Run(() =>
{
//var checkpoints = new Dictionary<string, TimeSpan>();
var last = TimeSpan.Zero;
foreach (var kv in checkpoints)
{