Merge remote-tracking branch 'origin/S03-轨迹中台优化项' into test
This commit is contained in:
commit
d57bde0a2d
@ -17,10 +17,10 @@
|
|||||||
<PackageReference Include="Volo.Abp.FluentValidation" Version="7.0.2" />
|
<PackageReference Include="Volo.Abp.FluentValidation" Version="7.0.2" />
|
||||||
<PackageReference Include="SJZY.UserCenter.HttpApi" Version="3.0.3-alpha8" />
|
<PackageReference Include="SJZY.UserCenter.HttpApi" Version="3.0.3-alpha8" />
|
||||||
<PackageReference Include="SJZY.Expand.CAP" Version="7.8.0" />
|
<PackageReference Include="SJZY.Expand.CAP" Version="7.8.0" />
|
||||||
<PackageReference Include="DotNetCore.CAP" Version="8.0.1" />
|
<PackageReference Include="DotNetCore.CAP" Version="8.1.2"/>
|
||||||
<PackageReference Include="DotNetCore.CAP.Dashboard" Version="8.0.1" />
|
<PackageReference Include="DotNetCore.CAP.Dashboard" Version="8.1.2"/>
|
||||||
<PackageReference Include="DotNetCore.CAP.RabbitMQ" Version="8.0.1" />
|
<PackageReference Include="DotNetCore.CAP.RabbitMQ" Version="8.1.2"/>
|
||||||
<PackageReference Include="DotNetCore.CAP.MySql" Version="8.0.1" />
|
<PackageReference Include="DotNetCore.CAP.MySql" Version="8.1.2"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@ -89,10 +89,8 @@ namespace SJZY.Track.Application
|
|||||||
// options.TopicNamePrefix = "v1";
|
// options.TopicNamePrefix = "v1";
|
||||||
options.FailedRetryInterval = configuration.GetValue<int>("CAP:FailedRetryInterval");
|
options.FailedRetryInterval = configuration.GetValue<int>("CAP:FailedRetryInterval");
|
||||||
options.FailedRetryCount = configuration.GetValue<int>("CAP:FailedRetryCount");
|
options.FailedRetryCount = configuration.GetValue<int>("CAP:FailedRetryCount");
|
||||||
options.ConsumerThreadCount = configuration.GetValue<int>("CAP:ConsumerThreadCount");
|
|
||||||
options.SucceedMessageExpiredAfter = configuration.GetValue<int>("CAP:SucceedMessageExpiredAfter");
|
options.SucceedMessageExpiredAfter = configuration.GetValue<int>("CAP:SucceedMessageExpiredAfter");
|
||||||
options.UseDispatchingPerGroup = configuration.GetValue<bool>("CAP:UseDispatchingPerGroup");
|
options.EnableSubscriberParallelExecute = true;
|
||||||
options.EnableConsumerPrefetch = true;
|
|
||||||
|
|
||||||
options.UseDashboard(dashboardOptions =>
|
options.UseDashboard(dashboardOptions =>
|
||||||
{
|
{
|
||||||
@ -107,8 +105,7 @@ namespace SJZY.Track.Application
|
|||||||
LogHelper.Error($@"
|
LogHelper.Error($@"
|
||||||
|-CAP失败回调事件:
|
|-CAP失败回调事件:
|
||||||
|-处理类型:{(faileCalback.MessageType == DotNetCore.CAP.Messages.MessageType.Subscribe ? "消费消息达到最大重试次数,需要开发人员介入" : "生产消息推送失败")}
|
|-处理类型:{(faileCalback.MessageType == DotNetCore.CAP.Messages.MessageType.Subscribe ? "消费消息达到最大重试次数,需要开发人员介入" : "生产消息推送失败")}
|
||||||
|-头部信息:{faileCalback.Message.Headers.ToJson()}
|
|-头部信息:{faileCalback.Message.Headers.ToJson()}");
|
||||||
|-消息内容:{(faileCalback.Message.Value is string ? faileCalback.Message.Value : faileCalback.Message.Value?.ToJson())}");
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user