Skip to content

Error message in backoff process #123

Description

@yoheikikuta

Every time the back-off process runs, an error message appears.
Code:

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions