Skip to content

Commit

Permalink
Merge pull request #11 from ryanwalters/patch-1
Browse files Browse the repository at this point in the history
feat(Job): increase max timeout to 36 hours
  • Loading branch information
fwang authored Nov 19, 2024
2 parents af138aa + ec59a15 commit ee25a30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-lamps-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"sst": patch
---

feat(Job): increase max timeout to 36 hours
4 changes: 2 additions & 2 deletions packages/sst/src/constructs/Job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export interface JobProps {
*/
memorySize?: JobMemorySize;
/**
* The execution timeout. Minimum 5 minutes. Maximum 8 hours.
* The execution timeout. Minimum 5 minutes. Maximum 36 hours.
*
* @default "8 hours"
*
Expand Down Expand Up @@ -785,7 +785,7 @@ export class Job extends Construct implements SSTConstruct {

private normalizeTimeout(timeout: Duration): CdkDuration {
const value = toCdkDuration(timeout);
if (value.toSeconds() < 5 * 60 || value.toSeconds() > 480 * 60) {
if (value.toSeconds() < 5 * 60 || value.toSeconds() > 2160 * 60) {
throw new Error(`Invalid timeout value for the ${this.node.id} Job.`);
}
return value;
Expand Down

0 comments on commit ee25a30

Please sign in to comment.