Skip to content

Commit 1ea3cda

Browse files
authored
feat(Job): increase max timeout to 36 hours
1 parent af138aa commit 1ea3cda

File tree

1 file changed

+2
-2
lines changed
  • packages/sst/src/constructs

1 file changed

+2
-2
lines changed

packages/sst/src/constructs/Job.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export interface JobProps {
189189
*/
190190
memorySize?: JobMemorySize;
191191
/**
192-
* The execution timeout. Minimum 5 minutes. Maximum 8 hours.
192+
* The execution timeout. Minimum 5 minutes. Maximum 36 hours.
193193
*
194194
* @default "8 hours"
195195
*
@@ -785,7 +785,7 @@ export class Job extends Construct implements SSTConstruct {
785785

786786
private normalizeTimeout(timeout: Duration): CdkDuration {
787787
const value = toCdkDuration(timeout);
788-
if (value.toSeconds() < 5 * 60 || value.toSeconds() > 480 * 60) {
788+
if (value.toSeconds() < 5 * 60 || value.toSeconds() > 2160 * 60) {
789789
throw new Error(`Invalid timeout value for the ${this.node.id} Job.`);
790790
}
791791
return value;

0 commit comments

Comments
 (0)