Closed ksbhadani closed 1 month ago
nopCommerce version: > 4.5
Steps to reproduce the problem:
Schedule tasks are made async but there caller stacks are sync and that leads to threadpool starvation, refer below screen shots
TaskThread
I think we should use periodic timer here, so that it can use async methods https://learn.microsoft.com/en-us/dotnet/api/system.threading.periodictimer?view=net-8.0
ScheduleTaskRunner
We should use async methods
Closed #7189
nopCommerce version: > 4.5
Steps to reproduce the problem:
Schedule tasks are made async but there caller stacks are sync and that leads to threadpool starvation, refer below screen shots
TaskThread
I think we should use periodic timer here, so that it can use async methods https://learn.microsoft.com/en-us/dotnet/api/system.threading.periodictimer?view=net-8.0
ScheduleTaskRunner![image](https://github.com/nopSolutions/nopCommerce/assets/165811203/90644b52-52f8-436a-ab52-289fbe9227f0)
We should use async methods