大佬教程收集整理的这篇文章主要介绍了等待 azure 函数持久编排完成,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
public class Queuetrigger
{
[Functionname(nameof(Queuetrigger))]
public async Task Run([Queuetrigger("queue-processing-test",Connection = "AzureWebJobsstorage")]Activity activity,[DurableClIEnt] IDurabLeorchestrationClIEnt starter,ILogger log)
{
log.Loginformation($"C# Queue trigger function processed: {activity.ActivityID}");
String instancEID = await starter.StartNewAsync<Activity>(nameof(ActivityProcessingorchestrator),activity);
log.Loginformation($"Started orchestration with ID = '{instancEID}'.");
var status = await starter.GetStatusAsync(instancEID);
do
{
status = await starter.GetStatusAsync(instancEID);
} while (status.Runtimestatus == orchestrationRuntimestatus.Running || status.Runtimestatus == orchestrationRuntimestatus.Pending);
}
@H_674_2@ 基本上是接收消息,开始编排,然后在 do/while 循环中等待状态为 Pending 或 Running。
我在这里遗漏了什么,或者有什么更好的方法可以做到这一点(我在网上找不到太多东西)。
预先感谢您的意见或建议!
WEBSITE_MAX_DYNAMIC_APPLICATION_SCALE_OUT
应用设置来控制函数应用可以扩展的实例数量出去。
以上是大佬教程为你收集整理的等待 azure 函数持久编排完成全部内容,希望文章能够帮你解决等待 azure 函数持久编排完成所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。