I have noticed a delay processing RuleMachine rules that started with the 2.4.0.x branch.
After further testing, it appears to only have a delay if using the "Cancel Time Actions" method. The delay increases if there are multiple items to cancel.
I made a simple rule for testing that only cancels it own timers.
Include Cancel:
app:5012024-12-29 01:18:38.642 PMinfoAction: Off: Shop Lights --> delayed: 0:00:30(cancelable)
app:5012024-12-29 01:18:38.534 PMinfoAction: On: Shop Lights
app:5012024-12-29 01:18:37.379 PMinfoEvent: Actions stopped by Shop Door Open Lights on
app:5012024-12-29 01:18:35.365 PMinfoAction: Cancel Timed Actions: **This Rule**
app:5012024-12-29 01:18:34.348 PMinfoTriggered: Door shop house contact open
app:5012024-12-29 01:18:34.347 PMinfoEvent: Door shop house contact open
Cancel timed action removed:
app:5012024-12-29 01:16:59.936 PMinfoAction: Off: Shop Lights --> delayed: 0:00:30(cancelable)
app:5012024-12-29 01:16:59.877 PMinfoAction: On: Shop Lights
app:5012024-12-29 01:16:59.836 PMinfoTriggered: Door shop house contact open
app:5012024-12-29 01:16:59.835 PMinfoEvent: Door shop house contact open
Very simple rule: