Skip to content

fix pubsub close#4661

Open
dima-zakharov wants to merge 1 commit intomainfrom
fix-pubsub-leak
Open

fix pubsub close#4661
dima-zakharov wants to merge 1 commit intomainfrom
fix-pubsub-leak

Conversation

@dima-zakharov
Copy link
Copy Markdown
Collaborator

🔗 Related Issue

Closes # #4570


📝 Summary

The session_affinity.py created closable pubsub entity without close.
Fix:

    pubsub = redis.pubsub()

replaced with

   with redis.pubsub() as pubsub: 

🏷️ Type of Change

  • Bug fix
  • Feature / Enhancement
  • Documentation
  • Refactor
  • Chore (deps, CI, tooling)
  • Other (describe below)

🧪 Verification

Check Command Status
Lint suite make lint
Unit tests make test
Coverage ≥ 80% make coverage

✅ Checklist

  • Code formatted (make black isort pre-commit)
  • Tests added/updated for changes
  • Documentation updated (if applicable)
  • No secrets or credentials committed

📓 Notes (optional)

Screenshots, design decisions, or additional context.

Signed-off-by: Dmitry Zakharov <zakharov@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant