Skip to content

Commit 6c974d2

Browse files
emmaling27Convex, Inc.
authored and
Convex, Inc.
committed
[local node executor] Remove tempdir which explodes disk space usage (#34347)
We were seeing disk out of memory issues in the self-hosted backend with high node actions load. Lo and behold, we never clean up the tempdir we write to when we download source and external packages. GitOrigin-RevId: ff30cfa442ad868c9e6aea86f1221adbecd00773
1 parent 354009b commit 6c974d2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ async function main(request_str: string, debug: boolean) {
3535
await invoke(request, responseStream);
3636
responseStream.end();
3737

38+
fs.rmSync(tempdir, { recursive: true });
3839
// Don't wait for dangling promises. This matches AWS Lambda behavior.
3940
process.exit(0);
4041
}

self-hosted/docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
- DATABASE_URL=${DATABASE_URL:-}
1717
- DISABLE_BEACON=${DISABLE_BEACON:-}
1818
- REDACT_LOGS_TO_CLIENT=${REDACT_LOGS_TO_CLIENT:-}
19-
- RUST_LOG=${RUST_LOG:-}
19+
- RUST_LOG=${RUST_LOG:-info}
2020
- RUST_BACKTRACE=${RUST_BACKTRACE:-}
2121
healthcheck:
2222
test: curl -f http://localhost:3210/version

0 commit comments

Comments
 (0)