Skip to content

Commit ee25a30

Browse files
authored
Merge pull request #11 from ryanwalters/patch-1
feat(Job): increase max timeout to 36 hours
2 parents af138aa + ec59a15 commit ee25a30

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/bright-lamps-smell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"sst": patch
3+
---
4+
5+
feat(Job): increase max timeout to 36 hours

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)