Skip to content

Commit

Permalink
qa: retry env to be NoneType (#3167)
Browse files Browse the repository at this point in the history
fix: retry env to be None type

Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>

Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
  • Loading branch information
aarnphm committed Oct 31, 2022
1 parent 92461d7 commit 5de6888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bentoml/_internal/runner/runner_handle/remote.py
Expand Up @@ -171,7 +171,7 @@ async def async_run_method(
) as resp:
body = await resp.read()
except aiohttp.ClientOSError as e:
if os.getenv("BENTOML_RETRY_RUNNER_REQUESTS").lower() == "true":
if os.getenv("BENTOML_RETRY_RUNNER_REQUESTS", "").lower() == "true":
try:
# most likely the TCP connection has been closed; retry after reconnecting
await self._reset_client()
Expand Down

0 comments on commit 5de6888

Please sign in to comment.