2016-06-10 51 views
0

我使用Azure的逻辑应用程序的最新预览版和我的话题之一检查是否在邮件的标题字符串如下为什么我在使用Azure逻辑应用程序时遇到超时?

"authenticatedresponse": { 
     "conditions": [ 
      { 
       "expression": "@equals(coalesce(trigger().outputs?.headers?['CHECK_THIS_STRING'], ''), 'SOME_STRING')" 
      } 
     ], 
     "inputs": { 
      "statusCode": 202 
     }, 
     "type": "Response" 
    } 

的主题中的代码所示一致SOME_STRING应该检查如果条件成立,然后将消息传递给服务总线。它在99%的情况下工作,但有时我会得到一个超时异常消息{"code":"ActionResponseTimedOut","message":"The execution of template action 'authenticatedresponse' is failed: the client application timed out waiting for a response from service. This means that workflow took longer to respond than the alloted timeout value. The connection maintained between the client application and service will be closed and client application will get an HTTP status code 504 Gateway Timeout."}

正如你所看到的,这是一个非常简单的条件,所以它确实不需要很多时间来执行。有人对这个问题有什么想法吗?

回答

0

响应操作超时是基于逻辑应用程序运行的总体执行持续时间,而不仅仅是响应操作本身的执行持续时间。

因此,如果逻辑应用程序运行完成超过90秒(达到Response操作),则客户端连接将关闭(假设客户端仍在等待http响应)并且响应操作失败。

+0

好的,但是我的超时权利仍然很奇怪吗?我并未回复该消息,而只是将其传递给Azure服务总线。我能做些什么,导致它需要90秒才能完成? – Alex

相关问题