如何检查Azure Function是否仍在运行 [英] how to check if Azure Function is still running or not

查看:134
本文介绍了如何检查Azure Function是否仍在运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了必须定期调用Azure函数的情况.当我调用函数时,我需要检查azure函数的状态.如果Azure函数正在运行,那么我需要将呼叫推迟到完成为止.

I have a situation where i have to call an Azure function periodically. When i call the function, i need to check the state of the azure function. If the Azure function is running, then i need to postpone the call until it is completed.

我正在尝试查看电子邮件队列(随着电子邮件的传入),我需要使用Amazon SES发送电子邮件

I am trying to look in an Email Queue (as the emails are coming in), I need to send the email using Amazon SES

我正在使用HTTPtrigger,电子邮件部分工作正常.

I am using a HTTPtrigger and the email part is working fine.

我不希望函数已经运行时被调用.

I don't want the function to be called, when it is already running.

推荐答案

如果考虑无服务器架构,则每次调用服务端点时,都会创建一个新实例,并由扩展控制器管理扩展.

If you consider the serverless architecture, each time whenever you invoke a service endpoint, a new instance will be created and scaling is managed by scaling controller.

无法检查该功能是否正在运行.

There is no way to check if the function is running or not.

这篇关于如何检查Azure Function是否仍在运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆