Browse Source

Add CorrelationId to RabbitMQ job messages

pull/24755/head
maliming 1 week ago
parent
commit
fcc1315014
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 3
      framework/src/Volo.Abp.BackgroundJobs.RabbitMQ/Volo/Abp/BackgroundJobs/RabbitMQ/JobQueue.cs

3
framework/src/Volo.Abp.BackgroundJobs.RabbitMQ/Volo/Abp/BackgroundJobs/RabbitMQ/JobQueue.cs

@ -172,7 +172,8 @@ public class JobQueue<TArgs> : IJobQueue<TArgs>
var routingKey = QueueConfiguration.QueueName;
var basicProperties = new BasicProperties
{
Persistent = true
Persistent = true,
CorrelationId = CorrelationIdProvider.Get()
};
if (delay.HasValue)

Loading…
Cancel
Save