[英]Azure resource for long running process in python
I am trying to figure out the best way to run a python process typically taking 10-30 (max an hour ish) minutes on my local machine.我正在尝试找出运行 python 进程的最佳方法,该进程通常在我的本地计算机上花费 10-30(最多一个小时)分钟。 The process will be manually triggered, and may not be triggered for ours or days.
该过程将被手动触发,并且可能不会在我们或几天内触发。
I am a bit confused, because I read official ms-docs stating that one should avoid long running processes in function apps ( https://learn.microsoft.com/en-us/azure/azure-functions/performance-reliability#avoid-long-running-functions ) but at the same time, the functionTimeout for the Premium and Dedicated plans can be unlimited.我有点困惑,因为我阅读了官方 ms-docs,指出应该避免在 function 应用程序中长时间运行进程( https://learn.microsoft.com/en-us/azure/azure-functions/performance-reliability#avoid -long-running-functions ) 但与此同时,Premium 和 Dedicated 计划的 functionTimeout 可以是无限的。
I am hesitant to use a standard web app with an API since it seems overkill to have it running 24/7.我犹豫是否要将标准 web 应用程序与 API 一起使用,因为让它 24/7 全天候运行似乎有些过分。
Are there any ideal resources for this?有什么理想的资源吗?
you can use consumption based Azure durable functions , they can run for hours or even days.您可以使用基于消耗的Azure 持久函数,它们可以运行数小时甚至数天。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.