使用 Quarkus 将函数部署到 Azure 时超时
Timeout deploying function to Azure using Quarkus
我刚刚使用 Quarkus 实现了一个端点,我正在尝试使用 maven 插件将它部署到 Azure,如下所示:
mvn clean install azure-functions:deploy
不幸的是,我遇到了超时问题,我想知道是否有办法以某种方式增加此超时。这是堆栈跟踪的样子:
[INFO] Authenticate with Azure CLI 2.0
[INFO] The specified function app does not exist. Creating a new function app...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:40 min
[INFO] Finished at: 2020-07-15T10:47:07-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.3.2:deploy (default-cli) on project time-tracker-az-functions: Requested feature is not available in resource group XXXXXXXXX-XXXXXXX. Please try using a different resource group or create a new one.: OnError while emitting onNext value: retrofit2.Response.class -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
Azure Functions 部署描述符(host.json
、function.json
)的模板位于 azure-config
目录中。根据需要编辑它们。准备就绪后重新运行构建。
将以下代码添加到host.json
中:
{
"version": "2.0",
"functionTimeout": "00:10:00"
}
更多细节,你可以参考这个article。
我刚刚使用 Quarkus 实现了一个端点,我正在尝试使用 maven 插件将它部署到 Azure,如下所示:
mvn clean install azure-functions:deploy
不幸的是,我遇到了超时问题,我想知道是否有办法以某种方式增加此超时。这是堆栈跟踪的样子:
[INFO] Authenticate with Azure CLI 2.0
[INFO] The specified function app does not exist. Creating a new function app...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:40 min
[INFO] Finished at: 2020-07-15T10:47:07-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.3.2:deploy (default-cli) on project time-tracker-az-functions: Requested feature is not available in resource group XXXXXXXXX-XXXXXXX. Please try using a different resource group or create a new one.: OnError while emitting onNext value: retrofit2.Response.class -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
Azure Functions 部署描述符(host.json
、function.json
)的模板位于 azure-config
目录中。根据需要编辑它们。准备就绪后重新运行构建。
将以下代码添加到host.json
中:
{
"version": "2.0",
"functionTimeout": "00:10:00"
}
更多细节,你可以参考这个article。