Skip to content

Commit

Permalink
Merge branch 'release/2024.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexa committed Nov 14, 2024
2 parents 196a756 + 0434888 commit d830370
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

### misc

## 2024.6.0

- [CHANGE] aws の再接続条件の exception に InternalFailureException を追加する
- @Hexa

## 2024.5.1

- [FIX] リリース時の build 前に patch をあてるように修正する
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.5.1
2024.6.0
3 changes: 2 additions & 1 deletion amazon_transcribe_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ func (h *AmazonTranscribeHandler) Handle(ctx context.Context, reader io.Reader)

// 復帰が不可能なエラー以外は再接続を試みる
switch err.(type) {
case *transcribestreamingservice.LimitExceededException:
case *transcribestreamingservice.LimitExceededException,
*transcribestreamingservice.InternalFailureException:
// リトライしない設定の場合、または、max_retry を超えた場合はクライアントにエラーを返し、再度接続するかはクライアント側で判断する
if (at.Config.MaxRetry < 1) || (at.Config.MaxRetry <= h.GetRetryCount()) {
if err := encoder.Encode(NewSuzuErrorResponse(err)); err != nil {
Expand Down

0 comments on commit d830370

Please sign in to comment.