mirror of
https://github.com/stablyai/orca.git
synced 2026-09-30 00:03:15 +00:00
fix(skills): retry staging owner cleanup on Windows
This commit is contained in:
@@ -36,7 +36,8 @@ export class SkillUploadStagingOwnership {
|
||||
}
|
||||
|
||||
async remove(): Promise<void> {
|
||||
await rm(this.directory, { recursive: true, force: true })
|
||||
// Windows can briefly retain a just-closed handle; keep cleanup bounded and retryable.
|
||||
await rm(this.directory, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 })
|
||||
}
|
||||
|
||||
private async cleanupAbandonedOwners(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user