Handle HTTP 504 errors from compute node

Fix #1032
pull/1035/head
Julien Duponchelle 7 years ago
parent ddc5e8169e
commit 39419462db
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -529,7 +529,7 @@ class Compute:
raise aiohttp.web.HTTPForbidden(text=msg)
elif response.status == 404:
raise aiohttp.web.HTTPNotFound(text="{} {} not found".format(method, path))
elif response.status == 408:
elif response.status == 408 or response.status == 504:
raise aiohttp.web.HTTPRequestTimeout(text="{} {} request timeout".format(method, path))
elif response.status == 409:
try:

Loading…
Cancel
Save