Skip to content
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

Notify channel operation and setting change #17

Open
BECATRUE opened this issue Nov 17, 2024 · 0 comments
Open

Notify channel operation and setting change #17

BECATRUE opened this issue Nov 17, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@BECATRUE
Copy link
Member

BECATRUE commented Nov 17, 2024

Feature you want to implement

To notify channels operation status and synchronize channels setting, the server should offer the feature notifying them whenever changed.

How the feature is implemented

It will be implemented using WebSocket. Django offers Channels for WebSocket, hence I decided to utilize this.

  1. Update asgi.py to run the server with asynchronous server gateway interface.
  2. Implement two Consumers to notify channels operation status and setting. The group of each Django channel is set to its target WLM channel.
  3. In the request handler to update operation or setting model, send the change to the corresponding group using group_send().

Additional context

You can refer to the followings for how to use Channels.

@BECATRUE BECATRUE added the enhancement New feature or request label Nov 17, 2024
@BECATRUE BECATRUE added this to the v1.0.0 milestone Nov 17, 2024
@BECATRUE BECATRUE self-assigned this Nov 21, 2024
@BECATRUE BECATRUE changed the title Notify channel setting change Notify channel operation and setting change Nov 21, 2024
BECATRUE added a commit that referenced this issue Nov 21, 2024
BECATRUE added a commit that referenced this issue Nov 22, 2024
BECATRUE added a commit that referenced this issue Nov 22, 2024
BECATRUE added a commit that referenced this issue Nov 22, 2024
BECATRUE added a commit that referenced this issue Nov 22, 2024
BECATRUE added a commit that referenced this issue Nov 22, 2024
BECATRUE added a commit that referenced this issue Nov 22, 2024
BECATRUE added a commit that referenced this issue Nov 22, 2024
BECATRUE added a commit that referenced this issue Nov 22, 2024
BECATRUE added a commit that referenced this issue Nov 22, 2024
BECATRUE added a commit that referenced this issue Nov 22, 2024
BECATRUE added a commit that referenced this issue Nov 22, 2024
BECATRUE added a commit that referenced this issue Nov 22, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
BECATRUE added a commit that referenced this issue Nov 28, 2024
This was referenced Nov 28, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
BECATRUE added a commit that referenced this issue Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant