Skip to content

Commit 1963a8e

Browse files
Feature flag for disabling listening for all prebuild updates (#20150)
1 parent 47370e2 commit 1963a8e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

components/server/src/workspace/gitpod-server-impl.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,20 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
243243
if (!this.client) {
244244
return;
245245
}
246+
247+
// todo(ft) disable registering for all updates from all projects by default and only listen to updates when the client is explicity interested in them
248+
const disableWebsocketPrebuildUpdates = await getExperimentsClientForBackend().getValueAsync(
249+
"disableWebsocketPrebuildUpdates",
250+
false,
251+
{
252+
gitpodHost: this.config.hostUrl.url.host,
253+
},
254+
);
255+
if (disableWebsocketPrebuildUpdates) {
256+
log.info("ws prebuild updates disabled by feature flag");
257+
return;
258+
}
259+
246260
// 'registering for prebuild updates for all projects this user has access to
247261
const projects = await this.getAccessibleProjects();
248262

0 commit comments

Comments
 (0)