azure - 为什么重新启动函数应用的 Azure 应用服务不同步 azure 函数?
问题描述
在 Azure Dev Ops 中使用 zip deploy 部署 azure 函数时,时间触发函数仅在我强制在 azure 门户中运行时才起作用。
有没有解决方案我可以在部署中解决这个问题?
函数.json
{
"generatedBy": "Microsoft.NET.Sdk.Functions-1.0.29",
"configurationSource": "attributes",
"bindings": [
{
"type": "timerTrigger",
"schedule": "%[Schedule]%",
"useMonitor": true,
"runOnStartup": false,
"name": "myTimer"
}
],
"disabled": false,
"scriptFile": "../bin/[ScriptFile]",
"entryPoint": "[entryPoint].Run"
}
[]之间是假名,因为隐私
解决方案
我找到了解决方案。我向发布管道添加了一个无代理作业,并添加了 Invoke Rest API 以发布同步触发器。