【发布时间】:2020-03-05 19:15:36
【问题描述】:
我想从我的计时器触发的天蓝色函数中调用另一个(不是计时器触发的)天蓝色函数。 它可以编译,但在运行时出现错误:
System.ArgumentException: 'The function 'HelloWorld' doesn't exist, is disabled, or is not an orchestrator function. Additional info: No orchestrator functions are currently registered!'
我将它简化为这个小代码 sn-p。
[FunctionName("HelloWorld")]
public static string HelloWorld([ActivityTrigger] string name, ILogger log)
{
return $"Hello {name}!";
}
[FunctionName("DownloadLiveList")]
public async void DownloadLiveList([DurableClient] IDurableOrchestrationClient client, [TimerTrigger("0 0 0 * * *", RunOnStartup = true)]TimerInfo myTimer, ILogger log)
{
await client.StartNewAsync<string>("HelloWorld", "Magdeburg");
}
当我从微软官方示例中获得这种天蓝色函数级联的想法时,我不知道为什么函数“HelloWorld”没有注册。上传到 azure 后,该函数在 azure 门户中与该类中的所有其他函数一样可见。
【问题讨论】:
标签: azure azure-functions azure-functions-core-tools timer-trigger