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 FEATURE: support target_user_ids for private messages (#37708) 2026-02-12 09:21:40 +11:00
triggerable_spec.rb FEATURE: Allow nested automation triggers up to a recursion limit (#40672) 2026-06-09 17:03:36 +02:00