简体   繁体   English

Timer Triggers可以调用Azure中的Activity Triggers吗?

[英]Can Timer Triggers call Activity Triggers in Azure?

I am creating a timer trigger function that is going to do certain checks.我正在创建一个计时器触发器 function,它将执行某些检查。 If a certain conditional is hit, I want to send an email and have set this up through an Activity Trigger.如果满足某个条件,我想发送一个 email 并通过活动触发器进行设置。 I keep getting the error我一直收到错误

The function 'activityTriggerName` doesn't exist', additional info: No orchestrator functions are currently registered!.

I am brand new to durable functions and triggers in Azure, any direction on if this is allowed or other ideas would be appreciated.我对 Azure 中的耐用功能和触发器是全新的,如果允许或其他想法的任何方向将不胜感激。

Activity functions can only be initiated by an Orchestrator.活动函数只能由 Orchestrator 启动。 The usual pattern is to have a trigger function create an orchestrator and then the orchestrator initiates one or more activity functions.通常的模式是让触发器 function 创建一个编排器,然后编排器启动一个或多个活动功能。

If you're using Visual Studio then the Orchestrator template will create a sample which includes an HTTP trigger, an orchestrator and an activity.如果您使用的是 Visual Studio,那么 Orchestrator 模板将创建一个示例,其中包括一个 HTTP 触发器、一个 orchestrator 和一个活动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM