Skip to content

Clean up temp files after each queue message#91

Merged
ericmj merged 1 commit intomainfrom
ericmj/cleanup-tmp-files-after-queue-processing
Apr 3, 2026
Merged

Clean up temp files after each queue message#91
ericmj merged 1 commit intomainfrom
ericmj/cleanup-tmp-files-after-queue-processing

Conversation

@ericmj
Copy link
Copy Markdown
Member

@ericmj ericmj commented Apr 3, 2026

TmpDir only cleans up on process exit, but Broadway processors are long-lived. Accumulated temp files cause page cache and kernel slab memory to grow, counted against the container's cgroup memory limit, eventually triggering OOM kills.

Add TmpDir.cleanup/0 and call it after each message is processed.

TmpDir only cleans up on process exit, but Broadway processors are
long-lived. Accumulated temp files cause page cache and kernel slab
memory to grow, counted against the container's cgroup memory limit,
eventually triggering OOM kills.

Add TmpDir.cleanup/0 and call it after each message is processed.
@ericmj ericmj merged commit 0cda79e into main Apr 3, 2026
12 checks passed
@ericmj ericmj deleted the ericmj/cleanup-tmp-files-after-queue-processing branch April 3, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant