Skip to content

Commit

Permalink
Emit connection retry message only when actually retrying on error (#…
Browse files Browse the repository at this point in the history
…2804)

Signed-off-by: Plamen Dimitrov <plamen.dimitrov@intra2net.com>
  • Loading branch information
pevogam committed Apr 21, 2023
1 parent 7c2157a commit aca65a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inference/worker/__main__.py
Expand Up @@ -122,9 +122,9 @@ def main():
time.sleep(5)
except Exception:
logger.exception("Error in websocket")
logger.warning("Retrying in 5 seconds...")
if not settings.retry_on_error:
sys.exit(1)
logger.warning("Retrying in 5 seconds...")
time.sleep(5)


Expand Down

0 comments on commit aca65a3

Please sign in to comment.