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
reorder some startup to prevent heartbeat issues #3073
reorder some startup to prevent heartbeat issues #3073
Conversation
Context on the neccessity of this change: It brought a larger Red's time to responsiveness down from a 15-16 minute window, all the way down to under 2 minutes, most of which is spent syncing with the gateway. A note: While it wasn't safe before due to ordering concerns, it is now completely unsafe to use |
Does this mean that using |
Yes, that's why this is marked as breaking |
I've gone ahead and added a timeout on loading extensions. The timeout is only in use during the bot's initial load not part of the normal method of adding extensions, and should prevent infinite hangs should a cog be doing this. I've not put this at a lower level because this is only added to prevent infinite hangs during startup. It wont prevent a cog from doing |
Last 4 commits address additional preexisting issues, the effects of which were amplified and made more noticeable by the startup changes. |
Yes, in my case the startup takes now ~1min 30, instead of over 15 minutes of hell before. And all that in peace without getting any heartbeat blocked and any disconnects. |
@PredaaA did you not mention that you saw an issue with this where all commands in a cog stop working after reloading the cog? |
Huhh no I forgot about this one. But well, yeah, but we wasn't sure if it was related to this PR. Basically after a restart audio commands wasn't working. |
As draper mentioned above, with this PR both @PredaaA and I have seen an odd issue where specifically with audio none of the commands will work, you can do the help for them, like |
PR included a handful of changes to audio to address those issues after they were brought up in discord. |
Type
Description of the changes
resolves #3045