Visitar URL original
Fix temp directories being cleaned only once per process by 00200200 · Pull Request #1590 · dbgate/dbgate · GitHub
Skip to content

Fix temp directories being cleaned only once per process - #1590

Open
00200200 wants to merge 1 commit into
dbgate:masterfrom
00200200:fix/periodic-temp-directory-cleanup
Open

00200200 wants to merge 1 commit into
dbgate:masterfrom
00200200:fix/periodic-temp-directory-cleanup

Conversation

@00200200

Copy link
Copy Markdown

Summary

Test plan

  • yarn workspace dbgate-api test directories.cleanup.test.js
  • Long-running docker/web instance: write stale files into jsl/run/uploads, confirm they disappear after the next sweep without a restart
  • Confirm files and archive are left alone

Fixes #1581

ensureDirectory only sweeps those dirs once per process, so a
long-running web/server instance can fill the disk. Sweep them
every 15 minutes with the existing 1-hour age policy.

Fixes dbgate#1581

This branch has not been deployed

No deployments
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.

BUG: temp directories (jsl/run/uploads) are cleaned only once per process start, so a long-running server grows until the disk is full

1 participant