improve locking naming
parent
13a81e3b16
commit
4232abeaf1
|
|
@ -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)) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue