diff --git a/components/server/src/prebuilds/prebuild-manager.ts b/components/server/src/prebuilds/prebuild-manager.ts index 8bcececceb9344..aaf9cc63ae9e84 100644 --- a/components/server/src/prebuilds/prebuild-manager.ts +++ b/components/server/src/prebuilds/prebuild-manager.ts @@ -49,7 +49,7 @@ export interface StartPrebuildParams { commitInfo?: CommitInfo; forcePrebuild?: boolean; trigger?: keyof ProjectUsage; - ignoreInactiveProject?: boolean; + assumeProjectActive?: boolean; } export interface PrebuildFilter { @@ -338,7 +338,7 @@ export class PrebuildManager { commitInfo, forcePrebuild, trigger = "lastWebhookReceived", - ignoreInactiveProject, + assumeProjectActive, }: StartPrebuildParams, ): Promise { const span = TraceContext.startSpan("startPrebuild", ctx); @@ -471,7 +471,7 @@ export class PrebuildManager { await this.workspaceDB.trace({ span }).storePrebuiltWorkspace(prebuild); span.setTag("ratelimited", true); } else if ( - !ignoreInactiveProject && + !assumeProjectActive && (await this.projectService.isProjectConsideredInactive(user.id, project.id)) ) { prebuild.state = "aborted"; diff --git a/components/server/src/workspace/workspace-service.ts b/components/server/src/workspace/workspace-service.ts index 0a41fc255b53e8..f968164754859b 100644 --- a/components/server/src/workspace/workspace-service.ts +++ b/components/server/src/workspace/workspace-service.ts @@ -455,7 +455,7 @@ export class WorkspaceService { forcePrebuild: false, context, trigger: "lastWorkspaceStart", - ignoreInactiveProject: true, + assumeProjectActive: true, }); log.info(logCtx, "starting prebuild after workspace creation", { projectId: project.id,