Lock workspace when using Get or Create Locked Workspace
parent
893469e946
commit
0f75d10854
|
|
@ -672,7 +672,9 @@ class SharedWorkspaceLocking {
|
|||
return element;
|
||||
}
|
||||
}
|
||||
return yield SharedWorkspaceLocking.CreateWorkspace(workspaceIfCreated);
|
||||
const workspace = yield SharedWorkspaceLocking.CreateWorkspace(workspaceIfCreated);
|
||||
yield SharedWorkspaceLocking.LockWorkspace(workspace, runId);
|
||||
return workspace;
|
||||
});
|
||||
}
|
||||
static DoesWorkspaceExist(workspace) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -30,7 +30,10 @@ export class SharedWorkspaceLocking {
|
|||
}
|
||||
}
|
||||
|
||||
return await SharedWorkspaceLocking.CreateWorkspace(workspaceIfCreated);
|
||||
const workspace = await SharedWorkspaceLocking.CreateWorkspace(workspaceIfCreated);
|
||||
await SharedWorkspaceLocking.LockWorkspace(workspace, runId);
|
||||
|
||||
return workspace;
|
||||
}
|
||||
|
||||
public static async DoesWorkspaceExist(workspace: string) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue