Skip to content

Commit 8202ae5

Browse files
authored
[server] Remove feature flag workspace_start_controller (#18735)
1 parent 547b8b3 commit 8202ae5

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

components/server/src/workspace/workspace-start-controller.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { Job } from "../jobs/runner";
1010
import { DBWithTracing, TracedWorkspaceDB, UserDB, WorkspaceDB } from "@gitpod/gitpod-db/lib";
1111
import { durationLongerThanSeconds } from "@gitpod/gitpod-protocol/lib/util/timeutil";
1212
import { WorkspaceStarter } from "./workspace-starter";
13-
import { getExperimentsClientForBackend } from "@gitpod/gitpod-protocol/lib/experiments/configcat-server";
1413
import { log } from "@gitpod/gitpod-protocol/lib/util/logging";
1514

1615
@injectable()
@@ -53,18 +52,6 @@ export class WorkspaceStartController implements Job {
5352
throw new Error("cannot find owner for workspace");
5453
}
5554

56-
const isEnabled = await getExperimentsClientForBackend().getValueAsync(
57-
"workspace_start_controller",
58-
false,
59-
{
60-
user,
61-
projectId: workspace.projectId,
62-
},
63-
);
64-
if (!isEnabled) {
65-
continue;
66-
}
67-
6855
await this.workspaceStarter.reconcileWorkspaceStart(ctx, instance.id, user, workspace);
6956
}
7057
} catch (err) {

components/server/src/workspace/workspace-starter.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ import { WorkspaceClassesConfig } from "./workspace-classes";
129129
import { SYSTEM_USER } from "../authorization/authorizer";
130130
import { EnvVarService, ResolvedEnvVars } from "../user/env-var-service";
131131
import { RedlockAbortSignal } from "redlock";
132-
import { getExperimentsClientForBackend } from "@gitpod/gitpod-protocol/lib/experiments/configcat-server";
133132
import { ConfigProvider } from "./config-provider";
134133
import { isGrpcError } from "@gitpod/gitpod-protocol/lib/util/grpc";
135134

@@ -382,17 +381,6 @@ export class WorkspaceStarter {
382381
}
383382
};
384383

385-
const runWithMutex = await getExperimentsClientForBackend().getValueAsync("workspace_start_controller", false, {
386-
user,
387-
projectId: workspace.projectId,
388-
});
389-
ctx.span.setTag("runWithMutex", runWithMutex);
390-
if (!runWithMutex) {
391-
const abortController = new AbortController();
392-
await doReconcileWorkspaceStart(abortController.signal);
393-
return;
394-
}
395-
396384
// We try to acquire a mutex here, which we intend to hold until the workspace start request is sent to ws-manager.
397385
// In case this container dies for whatever reason, the mutex is eventually released, and the instance can be picked up
398386
// by another server process (cmp. WorkspaceStartController).

0 commit comments

Comments
 (0)