Try our conversational search powered by Generative AI!

CMS 12 - ScheduledJobBase - async Execute

Vote:
 

Are there any plans for introducing async Execute in ScheduledJobBase (or other approach for using proper async/await in scheduled jobs)?
I know that there are workarounds for that using .Result or .GetAwaiter().GetResult(), but going forward with .Net 5 it would be great if this part of the system was aligned. 

#265219
Oct 17, 2021 10:26
Vote:
 

I agree, I've not heard any plans as yet to change this but you're not the first person that thought .NET 5 would have this. Hopefully something they'll think about for the future.

There's a feature request already for it https://feedback.episerver.com/ideas/PRODPER-I-39 

#265221
Edited, Oct 17, 2021 11:57
Vote:
 

oh, async and scheduled jobs ;) btw, the infrastructure underneath is half-ready to spin-off async tasks. if you want to know more about what is going on under the hood - https://blog.tech-fellow.net/2020/12/07/episerver-scheduled-jobs-under-the-hood/

#265350
Oct 20, 2021 6:25
Scott Reed - Oct 20, 2021 8:23
I read this when you popped it up, great article as usual Valdis :-)
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.