【问题标题】:.net 6 azure function time trigger 404 not found error.net 6 azure function time trigger 404 not found错误
【发布时间】:2022-06-16 03:10:34
【问题描述】:

第一次在 Azure 上使用 .NET 6 运行时,我收到以下错误。

时间触发功能未触发,我无法从门户手动运行它。

另外,我尝试了以下文档 https://docs.microsoft.com/en-us/azure/azure-functions/functions-manually-run-non-http 但我再次收到 404 not found 错误。

*从本地主机工作的时间触发器

*Visual Studio 2022 v 17.2.3

  • “FUNCTIONS_WORKER_RUNTIME”:“dotnet”,

【问题讨论】:

    标签: azure azure-functions


    【解决方案1】:

    每次我为 NCRONTAB 表达式创建时间触发器 Azure 函数时,我都会使用以下站点 https://crontab.guru/every-minute

    在这种情况下(每 4 小时一次)不起作用。所以基于不正确的表达式找不到404错误。

    有效的表达式是“0 0 */4 * * *”并且我使用的是“0 */4 * * *”

    https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs=in-process&pivots=programming-language-csharp

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-26
      • 2019-05-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-13
      • 1970-01-01
      相关资源
      最近更新 更多