Commit 6add9e4c authored by nanahira's avatar nanahira

fix

parent 1d526cab
Pipeline #23583 passed with stages
in 4 minutes and 29 seconds
......@@ -212,7 +212,7 @@ export class PackagerService extends ConsoleLogger {
private localLock = new BetterLock();
async archive(root: string, archiveTask: ArchiveTask): Promise<Archive> {
return this.redlock.getLockInstance().using([`archive:${archiveTask.path}`], 5000, async () => this.archiveProcess(root, archiveTask));
return this.localLock.acquire([`archive:${archiveTask.path}`], async () => this.archiveProcess(root, archiveTask));
}
private archiveQueue = new PQueue({ concurrency: parseInt(process.env.PACKAGE_COCURRENCY) || os.cpus().length });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment