0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 20:33:03 +08:00
discourse/plugins/automation/spec/lib
Sam c04933d184
FEATURE: Allow nested automation triggers up to a recursion limit (#40672)
Previously a thread-local "active automation" guard meant that as soon
as one automation was running, any nested `trigger!` call was silently
skipped. This prevented automations from triggering other automations.

This replaces that guard with a per-thread recursion depth counter.
Nested triggers are now allowed up to `MAX_RECURSION_DEPTH` (5); going
beyond that raises `RecursionLimitExceeded` (recorded via `Stat.log`)
to guard against infinite recursion.
2026-06-09 17:03:36 +02:00
..
discourse_automation DEV: Add automatically closed topics event trigger and adapt the automation plugin's auto tag_topic_script accordingly (#39235) 2026-04-14 14:50:36 -05:00
scriptable_spec.rb
triggerable_spec.rb FEATURE: Allow nested automation triggers up to a recursion limit (#40672) 2026-06-09 17:03:36 +02:00