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

Major rework of shutdown and reconnect logs to avoid zombie tasks and race conditions #117

Merged

Conversation

Drapersniper
Copy link
Contributor

@Drapersniper Drapersniper commented Mar 10, 2022

Depends on #115
Depends on #118 (For the callback code) Moved the callback code to the logging PR.
Depends on #119

Merge Last

@aikaterna aikaterna self-assigned this Mar 18, 2022
lavalink/lavalink.py Outdated Show resolved Hide resolved
lavalink/node.py Outdated Show resolved Hide resolved
lavalink/lavalink.py Outdated Show resolved Hide resolved
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
lavalink/node.py Outdated Show resolved Hide resolved
@aikaterna aikaterna merged commit 9a17676 into Cog-Creators:develop Mar 20, 2022
@Drapersniper Drapersniper deleted the Improve_shutdowns_reconnects branch March 20, 2022 21:07
Drapersniper added a commit to Drapersniper/Red-Lavalink that referenced this pull request Mar 20, 2022
… race conditions (Cog-Creators#117)

* Major rework of shutdown and reconnect logs to avoid zombie tasks and race conditions

* depends

* cleanup nodes

* rename vars

* missing callbacks

* add a `wait_until_ready` to `lavalink`

* change order to avoid circular imports

* *sigh*

* uhh

* ensure volume persists on a resume

* formatting

* revert task callbacks

* Apply suggestions from code review

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* Update lavalink/node.py

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Drapersniper added a commit to Drapersniper/Red-Lavalink that referenced this pull request Mar 20, 2022
… race conditions (Cog-Creators#117)

* Major rework of shutdown and reconnect logs to avoid zombie tasks and race conditions

* depends

* cleanup nodes

* rename vars

* missing callbacks

* add a `wait_until_ready` to `lavalink`

* change order to avoid circular imports

* *sigh*

* uhh

* ensure volume persists on a resume

* formatting

* revert task callbacks

* Apply suggestions from code review

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* Update lavalink/node.py

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Drapersniper added a commit to Drapersniper/Red-Lavalink that referenced this pull request Mar 20, 2022
… race conditions (Cog-Creators#117)

* Major rework of shutdown and reconnect logs to avoid zombie tasks and race conditions

* depends

* cleanup nodes

* rename vars

* missing callbacks

* add a `wait_until_ready` to `lavalink`

* change order to avoid circular imports

* *sigh*

* uhh

* ensure volume persists on a resume

* formatting

* revert task callbacks

* Apply suggestions from code review

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* Update lavalink/node.py

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Drapersniper added a commit to Drapersniper/Red-Lavalink that referenced this pull request Mar 20, 2022
… race conditions (Cog-Creators#117)

* Major rework of shutdown and reconnect logs to avoid zombie tasks and race conditions

* depends

* cleanup nodes

* rename vars

* missing callbacks

* add a `wait_until_ready` to `lavalink`

* change order to avoid circular imports

* *sigh*

* uhh

* ensure volume persists on a resume

* formatting

* revert task callbacks

* Apply suggestions from code review

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* Update lavalink/node.py

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Drapersniper added a commit to Drapersniper/Red-Lavalink that referenced this pull request Mar 21, 2022
… race conditions (Cog-Creators#117)

* Major rework of shutdown and reconnect logs to avoid zombie tasks and race conditions

* depends

* cleanup nodes

* rename vars

* missing callbacks

* add a `wait_until_ready` to `lavalink`

* change order to avoid circular imports

* *sigh*

* uhh

* ensure volume persists on a resume

* formatting

* revert task callbacks

* Apply suggestions from code review

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* Update lavalink/node.py

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Drapersniper added a commit to Drapersniper/Red-Lavalink that referenced this pull request Mar 21, 2022
… race conditions (Cog-Creators#117)

* Major rework of shutdown and reconnect logs to avoid zombie tasks and race conditions

* depends

* cleanup nodes

* rename vars

* missing callbacks

* add a `wait_until_ready` to `lavalink`

* change order to avoid circular imports

* *sigh*

* uhh

* ensure volume persists on a resume

* formatting

* revert task callbacks

* Apply suggestions from code review

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* Update lavalink/node.py

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Drapersniper added a commit to Drapersniper/Red-Lavalink that referenced this pull request Mar 28, 2022
… race conditions (Cog-Creators#117)

* Major rework of shutdown and reconnect logs to avoid zombie tasks and race conditions

* depends

* cleanup nodes

* rename vars

* missing callbacks

* add a `wait_until_ready` to `lavalink`

* change order to avoid circular imports

* *sigh*

* uhh

* ensure volume persists on a resume

* formatting

* revert task callbacks

* Apply suggestions from code review

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* Update lavalink/node.py

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Drapersniper added a commit to Drapersniper/Red-Lavalink that referenced this pull request Mar 29, 2022
… race conditions (Cog-Creators#117)

* Major rework of shutdown and reconnect logs to avoid zombie tasks and race conditions

* depends

* cleanup nodes

* rename vars

* missing callbacks

* add a `wait_until_ready` to `lavalink`

* change order to avoid circular imports

* *sigh*

* uhh

* ensure volume persists on a resume

* formatting

* revert task callbacks

* Apply suggestions from code review

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* Update lavalink/node.py

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Jackenmen added a commit that referenced this pull request Mar 29, 2022
* Make port argument in `lavalink.initialize` and `lavalink.node.Node()`

* fix, update and improve typehints and documentation in a few place

* Major rework of shutdown and reconnect logs to avoid zombie tasks and race conditions (#117)

* Major rework of shutdown and reconnect logs to avoid zombie tasks and race conditions

* depends

* cleanup nodes

* rename vars

* missing callbacks

* add a `wait_until_ready` to `lavalink`

* change order to avoid circular imports

* *sigh*

* uhh

* ensure volume persists on a resume

* formatting

* revert task callbacks

* Apply suggestions from code review

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* Update lavalink/node.py

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* make `Node()` kwarg only

* Prevent self.port from being Optional[int]

* Update lavalink/lavalink.py

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.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.

None yet

3 participants