chore(automations): correct the armed-rows comment on rule edit

This commit is contained in:
Tanmay Deep Sharma
2026-07-23 18:21:50 +05:30
parent 6f26f0e34b
commit c59dac2fcf
+2 -1
View File
@@ -131,7 +131,8 @@ class AutomationRule < ApplicationRecord
end
def discard_stale_pending_executions
# armed = pending + stale processing, which the sweep would otherwise reclaim.
# armed = pending + processing, the rows the sweep would otherwise still run. Rows already
# executing are left alone: their actions are in flight and cannot be called back.
pending_executions.armed.delete_all
end