mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-15 04:18:20 +00:00
test(cli): satisfy target lock worker lint
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
This commit is contained in:
parent
534ae9ae0b
commit
12cb63be3b
1 changed files with 3 additions and 2 deletions
|
|
@ -9,10 +9,11 @@ try {
|
|||
const release = await acquireSkillTargetLock(rootDir, slug)
|
||||
await writeFile(acquiredPath, 'acquired')
|
||||
process.stdout.write('acquired\n')
|
||||
while (true) {
|
||||
let releaseRequested = false
|
||||
while (!releaseRequested) {
|
||||
try {
|
||||
await access(releasePath)
|
||||
break
|
||||
releaseRequested = true
|
||||
} catch {
|
||||
await new Promise(resolve => setTimeout(resolve, 10))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue