-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Every time the back-off process runs, an error message appears.
Code:
cloud-profiler-python/googlecloudprofiler/client.py
Lines 303 to 316 in bf96efa
| def _poll_profiler_service(self): | |
| """Polls the profiler server stoplessly.""" | |
| logger.debug('Profiler has started') | |
| build_service_backoff = backoff.Backoff() | |
| while self._profiler_service is None: | |
| try: | |
| self._profiler_service = self._build_service() | |
| except BaseException as e: # pylint: disable=broad-except | |
| # Exponential backoff. | |
| backoff_duration = build_service_backoff.next_backoff() | |
| logger.error( | |
| 'Failed to build the Discovery client for profiler ' | |
| '(will retry after %.3fs): %s', backoff_duration, str(e)) | |
| time.sleep(backoff_duration) |
I often get this error, but this is a little bit noisy (because I don't have to worry about it if a retry succeeds).
Ideally, I think, the error message should appear only after a certain number of trials or a certain elapsed time.
Do you have any plan to fix this?
hagino3000
Metadata
Metadata
Assignees
Labels
No labels