improve locking naming

pull/524/head
Frostebite 2023-03-20 22:20:58 +00:00
parent 13a81e3b16
commit 4232abeaf1
3 changed files with 3 additions and 4 deletions

3
dist/index.js generated vendored
View File

@ -5289,7 +5289,6 @@ exports.SharedWorkspaceLocking = void 0;
const cloud_runner_system_1 = __nccwpck_require__(99393);
const node_fs_1 = __importDefault(__nccwpck_require__(87561));
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(22855));
const build_parameters_1 = __importDefault(__nccwpck_require__(80787));
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
class SharedWorkspaceLocking {
static get workspaceBucketRoot() {
@ -5335,7 +5334,7 @@ class SharedWorkspaceLocking {
.filter((x) => x.includes(workspace) && x.endsWith(`_lock`));
}
static async GetLockedWorkspace(workspace, runId, buildParametersContext) {
if (!build_parameters_1.default.shouldUseRetainedWorkspaceMode(buildParametersContext)) {
if (buildParametersContext.maxRetainedWorkspaces === 0) {
return false;
}
if (await SharedWorkspaceLocking.DoesCacheKeyTopLevelExist(buildParametersContext)) {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -63,7 +63,7 @@ export class SharedWorkspaceLocking {
.filter((x) => x.includes(workspace) && x.endsWith(`_lock`));
}
public static async GetLockedWorkspace(workspace: string, runId: string, buildParametersContext: BuildParameters) {
if (!BuildParameters.shouldUseRetainedWorkspaceMode(buildParametersContext)) {
if (buildParametersContext.maxRetainedWorkspaces === 0) {
return false;
}