Project

General

Profile

Actions

Bug #133

closed

BE - Trường hợp bị Timeout thì gọi google translate API để dịch thay thế

Added by Linh Nguyễn Xuân 11 months ago. Updated 6 months ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
11/03/2023
Due date:
% Done:

0%

Estimated time:
Actions #1

Updated by Nguyen Trong 11 months ago

  • Target version set to v0.0.3
Actions #2

Updated by Linh Nguyễn Xuân 11 months ago

  • Subject changed from BE - Trường hợp timeout cả 10 lần = Max retry reach thì giữ nguyên text cũ và bỏ qua dịch tiếp chứ ko trả về fail to BE - Trường hợp retry quá 10 lần = Max retry reach thì giữ nguyên text cũ và bỏ qua dịch tiếp chứ ko trả về fail
Actions #3

Updated by Nguyen Trong 11 months ago

  • Assignee changed from nguyen hien to Linh Nguyễn Xuân
Actions #4

Updated by Linh Nguyễn Xuân 11 months ago

  • Assignee changed from Linh Nguyễn Xuân to nguyen hien

@nguyen hien Flow sửa như sau ạ

Khi dịch document, gặp lỗi Timeout như hiện tại thì cắt ra từng paragraph và gọi lần lượt google translate api để dịch
dịch luôn ngay khi bị timeout không cần retry và cũng ko cần xử lý sau

Actions #5

Updated by Linh Nguyễn Xuân 10 months ago

  • Subject changed from BE - Trường hợp retry quá 10 lần = Max retry reach thì giữ nguyên text cũ và bỏ qua dịch tiếp chứ ko trả về fail to BE - Trường hợp bị Timeout thì gọi google translate API để dịch thay thế
Actions #6

Updated by Nguyen Trong 10 months ago

  • Priority changed from Normal to High

@nguyen hien apply dịch gg translate cho các đoạn text bị thiếu ngay sau khi bi timeout

Actions #7

Updated by nguyen hien 10 months ago

  • Assignee changed from nguyen hien to Nguyen Trong

Dung thư viện deep_translator để dịch

Actions #8

Updated by Nguyen Trong 6 months ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF