Skip to main content
This rule enforces that the timeoutMS property in Gadget action options does not exceed the maximum allowed value of 900000ms (15 minutes). Gadget enforces this limit at runtime, so exceeding it will cause the action to fail.

Rule Details

This rule checks the timeoutMS property in the options export and reports an error if the value exceeds 900000 (15 minutes). The rule only validates literal number values. Severity: Error Auto-fixable: Yes

Examples

Incorrect

Correct

Auto-fixes

The rule automatically clamps values that exceed the maximum to 900000:
String values for timeoutMS are ignored by this rule, as they will be caught by the action-no-invalid-options rule.

When to Use

This rule is included in the recommended config and should always be enabled for Gadget projects. It prevents runtime errors by ensuring timeout values are within Gadget’s limits.