Skip to content

Commit fcc1315

Browse files
committed
Add CorrelationId to RabbitMQ job messages
1 parent d01fc48 commit fcc1315

File tree

1 file changed

+2
-1
lines changed
  • framework/src/Volo.Abp.BackgroundJobs.RabbitMQ/Volo/Abp/BackgroundJobs/RabbitMQ

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ protected virtual async Task PublishAsync(
172172
var routingKey = QueueConfiguration.QueueName;
173173
var basicProperties = new BasicProperties
174174
{
175-
Persistent = true
175+
Persistent = true,
176+
CorrelationId = CorrelationIdProvider.Get()
176177
};
177178

178179
if (delay.HasValue)

0 commit comments

Comments
 (0)