我目前正在使用多个 azure function app 实例,带有 "apiVersion": "2015-08-01" 。目前我没有使用任何预热触发器,只有少数功能始终处于“预热”状态,即使重新启动应用程序很快就会进入预热状态,任何有相同经验并找到解决方案的人?
ARM 模板
{
"apiVersion": "2015-08-01",
"type": "Microsoft.Web/sites",
"name": "[variables('xx')]",
"location": "[parameters('location')]",
"kind": "functionapp",
"identity": {
"type": "SystemAssigned"
},
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('xx'))]"
],
"properties": {
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('xx'))]",
"siteConfig": {
"appSettings": [
]
}
}
起动机
[FunctionName("xxStarter")]
public async Task Run([QueueTrigger("xxQueue", Connection = "AzureWebJobsStorage")]
xx xxMessage,[DurableClient]IDurableOrchestrationClient starter, ILogger log)
{
string instanceId = await starter.StartNewAsync("xxOchestration", xxMessage);
}