Skip to content

Commit 8103ba0

Browse files
committed
fix: trying to fix
1 parent e1d4857 commit 8103ba0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

apps/execution-service/src/execution/execution.service.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,8 @@ export class ExecutionService {
3333
return { success: false, output: 'Unsupported language' };
3434
}
3535

36-
// Use OS temp directory or project root, not __dirname
37-
const tempDir = path.join(
38-
process.cwd(),
39-
'temp',
40-
'sandbox',
41-
`exec_${Date.now()}_${Math.random().toString(36).substring(7)}`,
42-
);
36+
const executionId = `exec_${Date.now()}_${Math.random().toString(36).substring(7)}`;
37+
const tempDir = path.join('/tmp/leetcode-sandbox', executionId);
4338
if (!fsSync.existsSync(tempDir)) {
4439
fsSync.mkdirSync(tempDir, { recursive: true });
4540
}

0 commit comments

Comments
 (0)