Skip to content

Commit

Permalink
Change names around
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek committed Nov 22, 2024
1 parent 6bf9dc8 commit 5afeecf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions components/server/src/prebuilds/prebuild-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface StartPrebuildParams {
commitInfo?: CommitInfo;
forcePrebuild?: boolean;
trigger?: keyof ProjectUsage;
ignoreInactiveProject?: boolean;
assumeProjectActive?: boolean;
}

export interface PrebuildFilter {
Expand Down Expand Up @@ -338,7 +338,7 @@ export class PrebuildManager {
commitInfo,
forcePrebuild,
trigger = "lastWebhookReceived",
ignoreInactiveProject,
assumeProjectActive,
}: StartPrebuildParams,
): Promise<StartPrebuildResult> {
const span = TraceContext.startSpan("startPrebuild", ctx);
Expand Down Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion components/server/src/workspace/workspace-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5afeecf

Please sign in to comment.