forked from python-discord/bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
4 / 44 of 4 issues completedLabels
enhancementNew feature or requestNew feature or request
Description
Summary
Under certain startup conditions, some extensions/cogs fail to load when the site/API is temporarily unavailable (e.g., connection drop, timeout, failed response).
Example (Filtering cog):
bot/exts/filtering/filtering.pyasync def cog_load(self)- site/API call during load (
self.bot.api_client.get(...)) - webhook setup during load (
_fetch_or_generate_filtering_webhook())
If these fail and are not handled, the cog may not load.
Affected Cogs
filters(highest priority; moderation-critical)superstarifyreminderspython_news
Tasks
- Add retry + backoff helper/pattern for temporary site/API failures
- Handle and log failures clearly in
cog_load() - Add moderator/admin alert for
filtersload failure - Re-raise after final failure so monitoring still sees it
- Add tests for retry/failure behavior (unit tests where feasible)
Reactions are currently unavailable
Sub-issues
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request