mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 13:08:40 +08:00
Previously, when `Scriptable::Utils.send_pm` raised an unexpected error, `Jobs::DiscourseAutomation::Tracker#send_pending_pm` only logged it and left the `PendingPm` row intact, so the scheduled job re-processed the same failing PM every minute indefinitely. This change destroys the pending PM in the generic `rescue` block — mirroring the existing `ActiveRecord::RecordNotSaved` handling — so a permanently-failing PM is removed after one attempt instead of looping forever. Resolves https://patch.discourse.org/patch-triage/14 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| regular/discourse_automation | ||
| scheduled/discourse_automation | ||