Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PoC] Attach Pool dispatcher to the project builder #684

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/build/ProjectBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as resourceFactory from "@ui5/fs/resourceFactory";
import BuildLogger from "@ui5/logger/internal/loggers/Build";
import composeProjectList from "./helpers/composeProjectList.js";
import BuildContext from "./helpers/BuildContext.js";
import {PoolDispatcher} from "../../../node_modules/@ui5/builder/lib/lbt/utils/PoolDispatcher.js";
import prettyHrtime from "pretty-hrtime";

/**
Expand Down Expand Up @@ -112,6 +113,8 @@ class ProjectBuilder {

this._graph = graph;
this._buildContext = new BuildContext(graph, taskRepository, buildConfig);
this._poolDispatcher = PoolDispatcher.getInstance();
this._poolDispatcher.registerProjectBuilder(this);
this.#log = new BuildLogger("ProjectBuilder");
}

Expand Down Expand Up @@ -262,6 +265,7 @@ class ProjectBuilder {
} finally {
this._deregisterCleanupSigHooks(cleanupSigHooks);
await this._executeCleanupTasks();
await this._poolDispatcher.cleanup(this);
}
}

Expand Down
Loading