ASP.Net Core 2.0 Shutdown Timeout, what issues can I expect using a very long time out of 2 min?

心不动则不痛 提交于 2019-12-24 00:49:34

问题


One of our API servers processes short Cell Phone Videos and the Background process can take up to a min.

I am aware of best practices regarding moving this to a WebJob and or using Hangfire.

For the hypothetical solution of performing this task on our API Server(It just waits for Azure Media Services by polling unfortunately, so not CPU bound).

What are the pitfalls of using a very long Shutdown Timeout as described in:

  • Implement background tasks in microservices with IHostedService and the BackgroundService class
  • Host configuration values - Shutdown Timeout

Looking for more than just opinion based answers such as "Its bad practice to do that in ASP.Net". This configuration exists for a reason and I would like to understand the actual drawbacks.

~Thx

来源:https://stackoverflow.com/questions/50371737/asp-net-core-2-0-shutdown-timeout-what-issues-can-i-expect-using-a-very-long-ti

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!