diff --git a/components/server/ee/src/workspace/gitpod-server-impl.ts b/components/server/ee/src/workspace/gitpod-server-impl.ts index 6d46644431073b..0bddcf83b3127b 100644 --- a/components/server/ee/src/workspace/gitpod-server-impl.ts +++ b/components/server/ee/src/workspace/gitpod-server-impl.ts @@ -312,11 +312,12 @@ export class GitpodServerEEImpl extends GitpodServerImpl { (i) => i.workspaceId !== workspaceId && i.status.timeout !== defaultTimeout && i.status.phase === "running", ); await Promise.all( - instancesWithReset.map((i) => { + instancesWithReset.map(async (i) => { const req = new SetTimeoutRequest(); req.setId(i.id); req.setDuration(this.userService.workspaceTimeoutToDuration(defaultTimeout)); + const client = await this.workspaceManagerClientProvider.get(i.region); return client.setTimeout(ctx, req); }), );