Skip to content

Commit adb81cb

Browse files
committed
Fix: DRS taking longer than 5s cause 503 status responses (#7911)
1 parent b66881d commit adb81cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/azul/service/repository_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
Authentication,
3131
)
3232
from azul.chalice import (
33-
ServiceUnavailableError,
33+
TemporaryRedirectError,
3434
)
3535
from azul.drs import (
3636
DRSStatusException,
@@ -414,7 +414,7 @@ def _download_file(self,
414414
try:
415415
download.update(authentication)
416416
except LimitedTimeoutException as e:
417-
raise ServiceUnavailableError(*e.args)
417+
raise TemporaryRedirectError(*e.args)
418418
except TooManyRequestsException as e:
419419
raise TooManyRequestsError(*e.args)
420420
except DRSStatusException as e:

0 commit comments

Comments
 (0)