Power Shell Dot Net Core Background Task Queue
https://dotblogs.com.tw/jakeuj/2021/04/28/PowerShellNetCoreQueue
-
DotnetCore Web API
-
Background Task Queue
-
PowerShell Script Param
-
info: JobAPI.QueuedHostedService[0]
Queued Hosted Service is running.
-
info: Microsoft.Hosting.Lifetime[0]
Now listening on: https://localhost:5001
-
info: Microsoft.Hosting.Lifetime[0]
Now listening on: http://localhost:5000
-
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
-
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
-
info: Microsoft.Hosting.Lifetime[0]
Content root path: JobAPI
-
info: JobAPI.Controllers.WeatherForecastController[0]
加入一個 30 秒的 PowerShell 作業
-
info: JobAPI.Controllers.WeatherForecastController[0]
開始一個 30 秒的 PowerShell 作業 155e8c0c-13dd-43ff-b506-d09eaf0a0b2b
-
info: JobAPI.Controllers.WeatherForecastController[0]
加入一個 25 秒的 PowerShell 作業
-
info: JobAPI.Controllers.WeatherForecastController[0]
加入一個 20 秒的 PowerShell 作業
-
info: JobAPI.Controllers.WeatherForecastController[0]
完成一個 30 秒的 PowerShell 作業 155e8c0c-13dd-43ff-b506-d09eaf0a0b2b
-
info: JobAPI.Controllers.WeatherForecastController[0]
開始一個 25 秒的 PowerShell 作業 c7f00d7c-7fd8-46e4-a777-3a921bf4c25c
-
info: JobAPI.Controllers.WeatherForecastController[0]
完成一個 25 秒的 PowerShell 作業 c7f00d7c-7fd8-46e4-a777-3a921bf4c25c
-
info: JobAPI.Controllers.WeatherForecastController[0]
開始一個 20 秒的 PowerShell 作業 471b2916-cd4e-4615-a90e-fdfced026ad0
-
info: JobAPI.Controllers.WeatherForecastController[0]
完成一個 20 秒的 PowerShell 作業 471b2916-cd4e-4615-a90e-fdfced026ad0