Hi. I have in-memory scheduler set this way:
Schedule(() => FinishAuctionByScheduler, x => x.FinishAuctionTokenId, x =>
{
x.Received = e => e.CorrelateById(context => context.Message.Id);
});
When scheduler task is set, saga gets FinishAuctionTokenId set as expected.
When statemachine calls Unschedule method, log is writing this cancelmessage with
SEND rabbitmq://localhost/quartz 100a0000-5d58-0015-5e4e-08d658ed0ade MassTransit.Scheduling.CancelScheduledMessage
But Guid in this message is not the one which kept in FinishAuctionTokenId!
After this FinishAuctionTokenId is deleted from saga, but scheduler job is still fires!
Why can it be?