Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

CMS 12 - ScheduledJobBase - async Execute


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. 

Oct 17, 2021 10:26

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 

Edited, Oct 17, 2021 11:57

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 -

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.