统一成功/失败结果快照,补全客户单号与 Excel 行号;系统重试耗尽后标记失败避免子项长期停留在执行中;任务 API 返回 pending/running/cancelled 计数。
20 lines
625 B
C#
20 lines
625 B
C#
namespace Oms.Application.Messaging;
|
||
|
||
/// <summary>
|
||
/// 订单批量消息业务开关。连接/消费/QoS/DLX/重试由 Fake.EventBus.RabbitMQ 配置。
|
||
/// </summary>
|
||
public class OrderBatchRabbitMqOptions
|
||
{
|
||
public const string SectionName = "OrderBatch:RabbitMq";
|
||
|
||
/// <summary>
|
||
/// 是否启用订单批量消息发布与处理。
|
||
/// </summary>
|
||
public bool Enabled { get; set; }
|
||
|
||
/// <summary>
|
||
/// 单个子项系统异常的最大重试次数(耗尽后标记失败并 Ack,避免子项长期停留在执行中)。
|
||
/// </summary>
|
||
public int MaxSystemRetries { get; set; } = 5;
|
||
}
|