Skip to content

Commit 7b0239c

Browse files
committed
[server] Remove feature flag workspace_start_controller
1 parent 6552fd5 commit 7b0239c

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
@@ -130,7 +130,6 @@ import { WorkspaceClassesConfig } from "./workspace-classes";
130130
import { SYSTEM_USER } from "../authorization/authorizer";
131131
import { EnvVarService, ResolvedEnvVars } from "../user/env-var-service";
132132
import { RedlockAbortSignal } from "redlock";
133-
import { getExperimentsClientForBackend } from "@gitpod/gitpod-protocol/lib/experiments/configcat-server";
134133

135134
export interface StartWorkspaceOptions extends GitpodServer.StartWorkspaceOptions {
136135
excludeFeatureFlags?: NamedWorkspaceFeatureFlag[];
@@ -397,17 +396,6 @@ export class WorkspaceStarter {
397396
}
398397
};
399398

400-
const runWithMutex = await getExperimentsClientForBackend().getValueAsync("workspace_start_controller", false, {
401-
user,
402-
projectId: workspace.projectId,
403-
});
404-
ctx.span.setTag("runWithMutex", runWithMutex);
405-
if (!runWithMutex) {
406-
const abortController = new AbortController();
407-
await doReconcileWorkspaceStart(abortController.signal);
408-
return;
409-
}
410-
411399
// We try to acquire a mutex here, which we intend to hold until the workspace start request is sent to ws-manager.
412400
// In case this container dies for whatever reason, the mutex is eventually released, and the instance can be picked up
413401
// by another server process (cmp. WorkspaceStartController).

0 commit comments

Comments
 (0)