Recently, Earthling went through a significant outage that lasted about 14 hours, during which commands either did not respond or took several minutes to load. This problem started soon after we updated our Giveaways module. The bot kept checking every giveaway every second due to an error in the way we calculated giveaway end times. As a result, there were far more pointless database queries than usual.
Our database reached its API limit as the number of queries increased, and it started to queue up each new request. As a result, every command - including dashboard actions, utilities, moderation, levelling, and more - had to wait behind thousands of giveaway checks. As a result, the entire bot behaved slowly or not at all. After locating the unusual query pattern, we isolated the problem by tracing it back to the new giveaway loop.
By correcting the timing calculations, halting the runaway process, emptying the database queue, and keeping an eye on things until they stabilised, we were able to resolve the incident. Stricter background task limits and better query spike monitoring are just two of the precautions we're putting in place to make sure something similar doesn't happen again. We appreciate your patience while we resolved this; everything is now completely functional.