为 GCP 工作流中的步骤设置最大超时
Set maximum timeout for a step in GCP workflows
我有一个调用一些云函数的工作流,有问题的云函数的超时是 400 秒。在 google 工作流中调用此函数时 returns 出现超时错误(我看到默认工作流超时为 300 秒)
我该如何更改?
request timed out
in step "getMedicineUserTransformations", routine "main", line: 51
{
"message": "request timed out",
"tags": [
"TimeoutError",
"OSError"
]
}
我想您有一个 HTTP 函数,并且您正在使用工作流 http
库来调用它。在这种情况下,默认超时为 300 秒,但您可以将其增加到 1800 秒,如文档中所述。
The request timeout, in seconds (default: 300.0). If the request takes longer than the timeout, a TimeoutError is raised. The maximum allowed timeout is 1800 seconds.
参考:https://cloud.google.com/workflows/docs/reference/stdlib/http/get
您可以通过在 call: http.<method>
的参数下设置 timeout
参数来增加它
此处文档中有更多详细信息:https://cloud.google.com/workflows/docs/http-requests#invoke-endpoint
当指定timeout is reached before the response is received that time “TimeoutError” will be triggered.So increase the timeout
我有一个调用一些云函数的工作流,有问题的云函数的超时是 400 秒。在 google 工作流中调用此函数时 returns 出现超时错误(我看到默认工作流超时为 300 秒)
我该如何更改?
request timed out
in step "getMedicineUserTransformations", routine "main", line: 51
{
"message": "request timed out",
"tags": [
"TimeoutError",
"OSError"
]
}
我想您有一个 HTTP 函数,并且您正在使用工作流 http
库来调用它。在这种情况下,默认超时为 300 秒,但您可以将其增加到 1800 秒,如文档中所述。
The request timeout, in seconds (default: 300.0). If the request takes longer than the timeout, a TimeoutError is raised. The maximum allowed timeout is 1800 seconds.
参考:https://cloud.google.com/workflows/docs/reference/stdlib/http/get
您可以通过在 call: http.<method>
timeout
参数来增加它
此处文档中有更多详细信息:https://cloud.google.com/workflows/docs/http-requests#invoke-endpoint
当指定timeout is reached before the response is received that time “TimeoutError” will be triggered.So increase the timeout