Discord Bot Version 1.10.5
We’ve made some changes to how we handle jobs which should hopefully prevent issues in the future with hung monitoring jobs.
We currently use Hangfire for job management, for some reason every once in a long while (sometimes weeks or months) we end up with hangfire deadlocking itself, unable to run jobs or delete them. The best way to remedy this is to purge the tables and all locks and start over.
It seems at first glance that Hangfire doesn’t like when our SQL server fails over, we haven’t dug deep into this, but the easy solution is to just move job management to Redis – it’s a bit more suited for jobs at scale anyway.