What the linter reports:
timeoutMS valuems has no effect on transactional model actions above 5000ms.
Examples
- Incorrect
- Correct
api/models/widget/actions/create.ts
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Disallow timeoutMS above 5000ms on model actions without explicitly setting transactional: false.
| Recommended | Strict | Auto-fixable | Scope |
|---|---|---|---|
| warn | error | false | Model action files |
timeoutMS valuems has no effect on transactional model actions above 5000ms.
export const options: ActionOptions = {
// 30000ms has no effect when transactional is true (max 5000ms)
timeoutMS: 30000,
transactional: true,
};
export const options: ActionOptions = {
// set transactional: false to use timeouts above 5000ms
timeoutMS: 30000,
transactional: false,
};
Was this page helpful?