What the linter reports:
maxConcurrency value exceeds Gadget’s limit of 100.
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 maxConcurrency values exceeding Gadget’s hard limit of 100 in api.enqueue queue options.
| Recommended | Strict | Auto-fixable | Scope |
|---|---|---|---|
| warn | error | false | All files (any file containing api.enqueue() calls) |
maxConcurrency value exceeds Gadget’s limit of 100.
// 101 exceeds Gadget's hard limit of 100
api.enqueue(api.publish, {}, { queue: { name: "q", maxConcurrency: 101 } });
// maxConcurrency must be 100 or less
api.enqueue(api.publish, {}, { queue: { name: "q", maxConcurrency: 100 } });
Was this page helpful?