This rule prevents settingDocumentation 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.
maxConcurrency values that exceed Gadget’s hard limit of 100 in api.enqueue calls. Gadget will reject enqueue calls with maxConcurrency above 100 at runtime.
Rule Details
This rule checksapi.enqueue calls for the queue.maxConcurrency option and reports an error if the value exceeds 100.
Severity: Error
Auto-fixable: No
Examples
Incorrect
Correct
This rule applies to all files, not just action files, since
api.enqueue can be called from anywhere in your codebase.Why This Matters
Gadget enforces a hard limit of 100 concurrent jobs per queue. SettingmaxConcurrency above this limit will cause Gadget to reject the enqueue call at runtime with an error.
When to Use
This rule is included in therecommended config and should always be enabled for Gadget projects. It prevents runtime errors by validating queue configuration at development time.