Skip to content

Commit 8ed01d5

Browse files
gautamg795Convex, Inc.
authored and
Convex, Inc.
committed
switch to mkdirSync in node executor (#37330)
this may not fix anything, but it should at least reveal the real error rather than ENOENT GitOrigin-RevId: 6338acf833fa22ed31151d58a31a6f0542be1e4a
1 parent a5fd722 commit 8ed01d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

npm-packages/node-executor/src/source_package.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ async function maybeDownloadExternalPackage(
211211

212212
async function createFreshDir(dir: string) {
213213
await fs.promises.rm(dir, { recursive: true, force: true });
214-
await fs.promises.mkdir(dir, { recursive: true, mode: 0o744 });
214+
// fs.promises.mkdir sometimes fails with ENOENT (the real error might be ENOSPC, but we're not sure)
215+
fs.mkdirSync(dir, { recursive: true, mode: 0o744 });
215216
}
216217

217218
async function streamToBuffer(

0 commit comments

Comments
 (0)