【发布时间】:2021-01-17 16:39:43
【问题描述】:
我有一个像这样的定时器触发函数设置
public class PBARCronTrigger
{
private readonly eReserveFunctions _settings;
public PBARCronTrigger(IOptions<eReserveFunctions> settings)
{
_settings = settings.Value;
}
[FunctionName("PBARCronTrigger")]
public async Task Run([TimerTrigger("%PBARCron%")] TimerInfo myTimer, ILogger log)
{
log.LogInformation($"PBARCronTrigger function executing at: {DateTime.Now}");
using (var client = new HttpClient())
我将 PBARCron 的应用设置设置为每 5 分钟一次:
但触发器未触发。我连接到实时日志,但没有任何反应。它一直说“过去 x 分钟内没有新的痕迹”
【问题讨论】:
标签: azure azure-functions timer-trigger