From 1ea3cda097dc0d332e2ad21d3a0bb531dbd50b7d Mon Sep 17 00:00:00 2001 From: Ryan Walters Date: Wed, 13 Nov 2024 21:44:53 -0600 Subject: [PATCH 1/2] feat(Job): increase max timeout to 36 hours --- packages/sst/src/constructs/Job.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sst/src/constructs/Job.ts b/packages/sst/src/constructs/Job.ts index 4b1549020..196e98f23 100644 --- a/packages/sst/src/constructs/Job.ts +++ b/packages/sst/src/constructs/Job.ts @@ -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" * @@ -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; From ec59a15c05acc008e36c3be8ec3b76aada3be49c Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 19 Nov 2024 14:36:53 -0500 Subject: [PATCH 2/2] sync --- .changeset/bright-lamps-smell.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/bright-lamps-smell.md diff --git a/.changeset/bright-lamps-smell.md b/.changeset/bright-lamps-smell.md new file mode 100644 index 000000000..172b5362f --- /dev/null +++ b/.changeset/bright-lamps-smell.md @@ -0,0 +1,5 @@ +--- +"sst": patch +--- + +feat(Job): increase max timeout to 36 hours