Repository navigation
Conversation
commit: |
Collaborator
Author
|
@ianmacartney want your read on direction here. The 24-hour grace period is the only thing reserving a file between
None is safe for a file stored before the cutoff whose message isn't saved yet, so it's documented as reset-only, which is the case in #361. The root fix would be reserving the file under its pending message so cleanup needs no grace period at all. |
robelest
force-pushed
the
feat/361-ignore-grace-period
branch
from
October 30, 2026 19:43
8bc1791 to
c3d7396
Compare
robelest
marked this pull request as ready for review
October 30, 2026 19:44
robelest
force-pushed
the
feat/361-ignore-grace-period
branch
from
October 30, 2026 19:45
c3d7396 to
e85f6e3
Compare
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
robelest
force-pushed
the
feat/361-ignore-grace-period
branch
from
October 30, 2026 21:51
f750c59 to
86d808c
Compare
…teFiles (#361) Passing the same cutoff to both cleans up recent unreferenced files, such as in a dev reset, while keeping any file used at or after it.
robelest
force-pushed
the
feat/361-ignore-grace-period
branch
from
October 30, 2026 22:58
86d808c to
5e36f03
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #361.
getFilesToDeleteanddeleteFilestake an optionallastTouchedBefore(ms since epoch) in place of the fixedDate.now() - 24h. Passing the same cutoff to both keeps any file used at or after it, and files with a reference are always kept. NaN and future cutoffs are rejected, since a future one would delete a file reused between listing and deleting.forceis unchanged.Only for resets: files from before the cutoff that aren't in a saved message yet (uploads, or a running generation's files) are deleted too, since the grace period is what reserves them until then.