Skip to content

Problem with message_queue redis database number #1580

Description

@hem4nt

I have two flask_socketio apps running which use message_queue="redis://localhost:6379/2" and message_queue="redis://localhost:6379/1" respectively.
But it looks like I'm doing it wrong or it is not honouring the database numbers 2 and 1 but may be using 0 as default because when I broadcast some message from an external process, it gets broadcast from both the apps!

In the external processes I initialise the app like this:

   socketio = SocketIO()
   socketio.init_app(None, message_queue=f"redis://localhost:6379/{db_number}")

Can you please help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions