()
| 1061 | function startExportJob(job, args, expectedSeconds) { |
| 1062 | let cleanedUp = false; |
| 1063 | const cleanup = () => { |
| 1064 | if (cleanedUp) return; |
| 1065 | cleanedUp = true; |
| 1066 | for (const file of job.tempFiles || []) { |
| 1067 | fsp.unlink(file).catch(() => {}); |
| 1068 | } |
| 1069 | }; |
| 1070 | const child = spawn(FFMPEG, args, { |
| 1071 | cwd: ROOT, |
| 1072 | windowsHide: true, |