Badge grant fails if any throw exception

Continuing the discussion from [solved] Badges 'update daily' won't trigger:

إعجاب واحد (1)

@sam it’s bad that one rogue query can stop all the daily badges, people should get a /admin alert for this

Sure PR to fix this welcome, we should also be logging warnings for any “delta” query that takes longer than 200ms and daily that takes longer than 2 seconds (configurable in site settings)

إعجاب واحد (1)

https://github.com/discourse/discourse/pull/3306

No /admin alert, logging of long queries not included

إعجابَين (2)