Skip to content

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

Merged
aikaterna merged 14 commits into
Cog-Creators:developfrom
Drapersniper:Improve_shutdowns_reconnects
Mar 20, 2022
Merged

Major rework of shutdown and reconnect logs to avoid zombie tasks and race conditions#117
aikaterna merged 14 commits into
Cog-Creators:developfrom
Drapersniper:Improve_shutdowns_reconnects

Conversation

@Drapersniper

@Drapersniper Drapersniper commented Mar 10, 2022

Copy link
Copy Markdown
Contributor

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
Comment thread lavalink/lavalink.py Outdated
Comment thread lavalink/node.py
Comment thread lavalink/lavalink.py Outdated
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Comment thread lavalink/node.py Outdated
@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.

3 participants