mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[PR #977] [MERGED] fix: NewScheduler incorrectly creates underlying Client, closing broker properly #2977
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#2977
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hibiken/asynq/pull/977
Author: @kamikazechaser
Created: 12/4/2024
Status: ✅ Merged
Merged: 12/6/2024
Merged by: @kamikazechaser
Base:
master← Head:sohail/pm-redis-conn-hotfix📝 Commits (2)
ee17997fix: NewScheduler wrongly creates a client whose sharedConnection value is always truef1e7dc4fix: closing the Client also closes the broker📊 Changes
1 file changed (+17 additions, -10 deletions)
View changed files
📝
scheduler.go(+17 -10)📄 Description
closes: #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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.