2016-06-10 53 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

相關問題