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

@Drapersniper Drapersniper force-pushed the Improve_shutdowns_reconnects branch from d6eb3f2 to ce70f28 Compare March 16, 2022 09:18
@Jackenmen Jackenmen added this to the 0.10.0 milestone Mar 17, 2022
@Drapersniper Drapersniper force-pushed the Improve_shutdowns_reconnects branch from 976e1b4 to bd847b9 Compare March 18, 2022 16:18
@Drapersniper Drapersniper force-pushed the Improve_shutdowns_reconnects branch from a38c1d7 to 5980294 Compare March 18, 2022 21:17
@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
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 <[email protected]>

* Update lavalink/node.py

Co-authored-by: jack1142 <[email protected]>
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 <[email protected]>

* Update lavalink/node.py

Co-authored-by: jack1142 <[email protected]>
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 <[email protected]>

* Update lavalink/node.py

Co-authored-by: jack1142 <[email protected]>
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 <[email protected]>

* Update lavalink/node.py

Co-authored-by: jack1142 <[email protected]>
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 <[email protected]>

* Update lavalink/node.py

Co-authored-by: jack1142 <[email protected]>
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 <[email protected]>

* Update lavalink/node.py

Co-authored-by: jack1142 <[email protected]>
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 <[email protected]>

* Update lavalink/node.py

Co-authored-by: jack1142 <[email protected]>
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 <[email protected]>

* Update lavalink/node.py

Co-authored-by: jack1142 <[email protected]>
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 <[email protected]>

* Update lavalink/node.py

Co-authored-by: jack1142 <[email protected]>

* make `Node()` kwarg only

* Prevent self.port from being Optional[int]

* Update lavalink/lavalink.py

Co-authored-by: jack1142 <[email protected]>

Co-authored-by: jack1142 <[email protected]>
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.

3 participants