8000 Sadd deprecation warning fix for redis 4 8 1 by stadori · Pull Request #37 · queue-bus/queue-bus · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@stadori
Copy link
Contributor
@stadori stadori commented Jun 12, 2025

fixes the following deprecation warning on Redis-4.8.1

Redis#sadd will always return an Integer in Redis 5.0.0. Use Redis#sadd? instead

  • Bumps version to 0.13.4

aalong-tr and others added 5 commits July 26, 2024 09:58
* Adds rake task variant for eliminating entire applications

The unsubscribe rake task, when passed two arguments, does not appear to
actually delete any subscriptions. The exact reason for this is not
obvious, but this is far from the only problem with the task:
- the behavior when an app is provided but a queue name is omitted is
  surprising and potentially destructive
- an application that uses multiple queues would require multiple runs
  of the task to fully decomission

Solve both of these problems with a new code path that unsubscribes a
single application in its entirety. This code path already existed, but
was unreachable as a safeguard against shared applications conflicting
across services.

* Bumps version to 0.13.3
Copy link
Collaborator
@aalong-tr aalong-tr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't look like the return value of either sadd call is ever used so this should be fine, thank you!

## [Unreleased]

## [0.13.4]
- Removes sadd usage in favor of sadd?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please expand this to explain that this is to address a deprecation warning in preparation for Redis 5?

@aalong-tr aalong-tr merged commit 2a55fd8 into queue-bus:master Jun 16, 2025
1 check passed
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.

2 participants

0