Is there some way to get scheduler task by TokenId to see i's firing time?

23 views
Skip to first unread message

Roman Prykhodko

unread,
Nov 30, 2018, 12:56:43 AM11/30/18
to masstransit-discuss
Hi.
I have sheduler task set in some previous statemachine states, tokenId is saved in saga. Now, in current state I want to reschedule it, but for this action I need to get task time, add some additional time to it and schedule again.
Standard way - to Unchedule + Schedule is not good for me, because to schedule new time I need to know the previous one.  
So, I need get scheduler task by TokenId and read it's time. Is it possible?

Дмитрий Ушенко

unread,
Dec 6, 2018, 6:56:02 AM12/6/18
to masstransit-discuss
Try to use GetQuartz... extension methods. These extension methods use consume context to get scheduling related data. They live in MassTransit.Scheduling.SchedulingExtensions class.

пятница, 30 ноября 2018 г., 8:56:43 UTC+3 пользователь Roman Prykhodko написал:
Reply all
Reply to author
Forward
0 new messages