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

No exception text when ZeebeBackPressureError is raised #205

Closed
Andy-JB opened this issue Aug 27, 2021 · 1 comment
Closed

No exception text when ZeebeBackPressureError is raised #205

Andy-JB opened this issue Aug 27, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Andy-JB
Copy link
Contributor

Andy-JB commented Aug 27, 2021

Describe the bug

When job_poller.py attempts to activate jobs, if a ZeebeBackPressureError is raised, no exception text will be logged.

Current log text is Exception: . Retrying in 5 seconds...

To Reproduce
Steps to reproduce the behavior:

  1. In job_poller.py, change the try statement for poll_once to
try:
    raise ZeebeBackPressureError()
  1. Start the worker

Expected behavior
Failed to activate jobs from the gateway. Exception: ZeebeBackPressureError(). Retrying in 5 seconds...

This can be achieved by changing

logger.warning(f"Failed to activate jobs from the gateway. Exception: {str(error)}. Retrying in 5 seconds...")

to

logger.warning(f"Failed to activate jobs from the gateway. Exception: {repr(error)}. Retrying in 5 seconds...")

Desktop (please complete the following information):

  • OS: IOS
  • 3.0.0rc2, Zeebe 1.1.0
@JonatanMartens
Copy link
Collaborator

Fixed in the next pre-release. Thanks for bringing this to my attention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants