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

fix: NewScheduler incorrectly creates underlying Client, closing broker properly #977

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kamikazechaser
Copy link
Collaborator

  • closes: [BUG] RedisClient created by PeriodicTaskManager doesn't close connection #975

  • fix: NewScheduler wrongly creates a client whose sharedConnection value is always true: This is affecting the PeriodicManager as well as the Scheduler

  • fix: closing the Client also closes the broker: The error was also previously unhandled. For shared connections an error will be returned by the broker itself because the sharedConnection bool is also set on the client. This also means we can get rid of the sharedConnection flag on the Scheduler itself and let it work internally

…ue is always true

* This is affecting the PeriodicManager as well as the Scheduler
* The error was also previously unhandled. For shared connections an error will be returned by the broker itself because the sharedConnection bool is also set on the client. This also means we can get rid of the sharedConnection flag on the Scheduler itself and let it work internally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] RedisClient created by PeriodicTaskManager doesn't close connection
1 participant