We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e57c32 commit 87c9d71Copy full SHA for 87c9d71
src/service/agent.js
@@ -229,8 +229,13 @@ async function executeJob(jobInfo, keepFiles) {
229
// Remove temporary directory when `keepFiles` is false
230
if (!keepFiles) {
231
// tmpDir.removeCallback();
232
- console.log('QQQQQQ tmpDirPath', tmpDirPath);
233
- fs.rmSync(tmpDirPath, { recursive: true, force: true });
+ try {
+ console.log('QQQQQQ1 tmpDirPath', tmpDirPath);
234
+ fs.rmSync(tmpDirPath, { recursive: true, force: true });
235
+ console.log('QQQQQQ2 tmpDirPath', tmpDirPath);
236
+ } catch (err) {
237
+ logger.error('Error when removing tmp directory:', err);
238
+ }
239
}
240
241
0 commit comments