Skip to content

Commit

Permalink
Feature flag for disabling listening for all prebuild updates (#20150)
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek authored Aug 26, 2024
1 parent 47370e2 commit 1963a8e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions components/server/src/workspace/gitpod-server-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,20 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
if (!this.client) {
return;
}

// 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
const disableWebsocketPrebuildUpdates = await getExperimentsClientForBackend().getValueAsync(
"disableWebsocketPrebuildUpdates",
false,
{
gitpodHost: this.config.hostUrl.url.host,
},
);
if (disableWebsocketPrebuildUpdates) {
log.info("ws prebuild updates disabled by feature flag");
return;
}

// 'registering for prebuild updates for all projects this user has access to
const projects = await this.getAccessibleProjects();

Expand Down

0 comments on commit 1963a8e

Please sign in to comment.