Skip to content

Commit 6b73fb8

Browse files
authored
feat(codecatalyst): increase DevEnv connect timeout #3260
1 parent 6bbcc75 commit 6b73fb8

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "CodeCatalyst: wait up to 1 hour (instead of 3 minutes) for Dev Environment to start"
4+
}

src/shared/clients/codecatalystClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ class CodeCatalystClientInternal {
559559
public async startDevEnvironmentWithProgress(
560560
args: CodeCatalyst.StartDevEnvironmentRequest,
561561
status: string,
562-
timeout: Timeout = new Timeout(180000)
562+
timeout: Timeout = new Timeout(1000 * 60 * 60)
563563
): Promise<DevEnvironment> {
564564
// Track the status changes chronologically so that we can
565565
// 1. reason about hysterisis (weird flip-flops)

src/shared/utilities/timeoutUtils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ interface TypedCancellationToken extends CancellationToken {
3737
/**
3838
* Timeout that can handle both cancellation token-style and time limit-style timeout situations. Timeouts
3939
* cannot be used after 'complete' has been called or if the Timeout expired.
40-
*
41-
* @param timeoutLength Length of timeout duration (in ms)
4240
*/
4341
export class Timeout {
4442
private _startTime: number
@@ -51,6 +49,9 @@ export class Timeout {
5149
private readonly _onCompletionEmitter = new EventEmitter<void>()
5250
public readonly onCompletion = this._onCompletionEmitter.event
5351

52+
/**
53+
* @param timeoutLength Timeout duration (in ms)
54+
*/
5455
public constructor(timeoutLength: number) {
5556
this._startTime = globals.clock.Date.now()
5657
this._endTime = this._startTime + timeoutLength

0 commit comments

Comments
 (0)