This rule prevents a common misconfiguration whereDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/aurelienbobenrieth/gadget/llms.txt
Use this file to discover all available pages before exploring further.
timeoutMS is set above 5000ms on a model action that is transactional. Transactional model actions are killed after 5 seconds regardless of the timeoutMS setting, so setting a higher timeout has no effect and may mislead developers.
Rule Details
Model actions are transactional by default. Transactional actions have a hard 5-second (5000ms) timeout limit. This rule reports an error when:timeoutMSis set above 5000ms, ANDtransactionalis not explicitly set tofalse
Examples
Incorrect
Correct
How to Fix
You have two options to fix this error:- Set
transactional: falseif you need the longer timeout:
- Reduce
timeoutMSto 5000 or below if you want to keep the action transactional:
This rule only applies to model actions. Global actions are never transactional and do not have this limitation.
When to Use
This rule is included in therecommended config and should always be enabled for Gadget projects. It prevents a common misconfiguration that can lead to unexpected timeouts and confusion.