使用Quarkus将超时部署功能部署到Azure

时间:2020-07-15 15:48:34

标签: azure-functions 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.

1 个答案:

答案 0 :(得分:2)

Azure Functions部署描述符(host.jsonfunction.json)的模板位于azure-config目录中。根据需要编辑它们。准备就绪后,重新运行构建。

将以下代码添加到host.json中:

{
  "version": "2.0",
  "functionTimeout": "00:10:00"
}

有关更多详细信息,请参阅此article

相关问题