feat(bll, all): обновлена библиотека RabbitMq.Client до версии 7.1.2. Обновлен MqServiceV2. В IMqSettings добавлен параметр PrefetchCount - макс кол-во одновременных обработок очередей. Обновлены связанные проекты под новый MqService. В проектах Aihit, SyncTemplate, SyncSchedule установлен параметр в конфиг PrefetchCount =100
This commit is contained in:
@@ -66,7 +66,7 @@ namespace PARR.Master.Services
|
||||
|
||||
if (objs.Any())
|
||||
{
|
||||
var sendResult = mqService.Send(mqSettings, objs.ToArray());
|
||||
var sendResult = await mqService.SendAsync(mqSettings, objs.ToArray());
|
||||
if (sendResult.IsSuccess)
|
||||
{
|
||||
logger.LogInformation($"Наряды переданы в RabbitMQ: {objs.Count()}");
|
||||
|
||||
@@ -8,5 +8,6 @@ namespace PARR.Master.Settings
|
||||
public string QueueName { get; set; } = string.Empty;
|
||||
public string User { get; set; } = string.Empty;
|
||||
public string Password { get; set; } = string.Empty;
|
||||
public ushort? PrefetchCount { get; set; } = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user