fix path deletion on job fail

This commit is contained in:
SrGooglo 2025-04-24 09:38:58 +00:00
parent 8c6ffadcc8
commit f8f8fa831b

View File

@ -20,7 +20,7 @@ export default {
return result
} catch (error) {
await fs.promises
.rm(tmpPath, { recursive: true, force: true })
.rm(job.workPath, { recursive: true, force: true })
.catch(() => null)
throw error