8000 feat(redis): Use Redis PubSub by marc-rutzou · Pull Request #678 · airweave-ai/airweave · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(redis): Use Redis PubSub #678

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

Merged
merged 1 commit into from
May 29, 2025
Merged

feat(redis): Use Redis PubSub #678

merged 1 commit into from
May 29, 2025

Conversation

marc-rutzou
Copy link
Collaborator
@marc-rutzou marc-rutzou commented May 28, 2025

Replace the in-memory pubsub with Redis pubsub.
Then we can allow multiple nodes to share the pubsub.


Summary by cubic

Replaced the in-memory pubsub system with Redis PubSub to allow sync job updates to be shared across multiple nodes.

  • Dependencies
    • Added Redis configuration and a new async Redis client.
    • Updated sync job pubsub logic to use Redis channels for publishing and subscribing.

Copy link
@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

cubic found 1 issue across 5 files. Review it in cubic.dev

React with 👍 or 👎 to teach cubic. Tag @cubic-dev-ai to give specific feedback.

redis.Redis: Configured Redis client instance.
"""
return redis.Redis(
host=settings.REDIS_HOST,
Copy link

Choose a reason for hiding this comment

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

Connection configuration omits authentication and database selection, ignoring settings.REDIS_PASSWORD and settings.REDIS_DB; deployments requiring a password or non-default DB will fail to connect.

@orhanrauf orhanrauf merged commit d56ef23 into main May 29, 2025
3 of 5 checks 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