Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more retry logic to watch service #664

Open
cjh1 opened this issue Jan 4, 2023 · 1 comment
Open

add more retry logic to watch service #664

cjh1 opened this issue Jan 4, 2023 · 1 comment

Comments

@cjh1
Copy link
Member

cjh1 commented Jan 4, 2023

We want to prevent intermittent error such as a 502 from the RESTful endpoint causing the watch look to terminate here.

@cjh1
Copy link
Member Author

cjh1 commented Mar 19, 2024

For example we should try to recover from this:

    raise self._exception
  File "/home/kitware/.pyenv/versions/3.9.7/envs/distiller/lib/python3.9/site-packages/tenacity/_asyncio.py", line 51, in __call__
    result = await fn(*args, **kwargs)
  File "/home/kitware/distiller/cli/watch/distiller/modes/scan_4d_files.py", line 79, in post_file_event
    async with session.post(
  File "/home/kitware/.pyenv/versions/3.9.7/envs/distiller/lib/python3.9/site-packages/aiohttp/client.py", line 1117, in __aenter__
    self._resp = await self._coro
  File "/home/kitware/.pyenv/versions/3.9.7/envs/distiller/lib/python3.9/site-packages/aiohttp/client.py", line 381, in _request
    raise RuntimeError("Session is closed")
RuntimeError: Session is closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant