fix(daemon): keep purge confirmations across slow pass cycles

A gap of more than 20 min between two confirmations reset the wait, but a
cycle over ~80 repos took ~25 min, so no deletion was ever confirmed.
Only a gap over 6 h starts over now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-11-17 16:19:04 +01:00
1 parent 0f83e9d30b
commit d73f0c9463
3 files changed
+8 -3

No files matched your search

+3 -2
View File
@@ -129,8 +129,9 @@ purged_dir = "Purged" # default; "" disables the move
- Trigger: a fetch fails with a "not found"-style error (also Gitea's SSH "Cannot find repository"). That is only a hint: the forge serving
`origin` must then answer 404 while the same token works (`test_connection`), and still do so
`purge::CONFIRM_AFTER_SECS` (10 min) after the first confirmation (a gap of more than twice
that starts over). A working fetch, or the forge seeing the repo again, clears it. Network or
`purge::CONFIRM_AFTER_SECS` (10 min) after the first confirmation (a gap of more than
`STALE_AFTER_SECS`, 6 h, between two confirmations starts over: a pass over many repos can take
longer than 20 min, so a shorter gap never let a deletion be confirmed). A working fetch, or the forge seeing the repo again, clears it. Network or
token errors change nothing.
- Only repos owned by the token's account, or by an organisation named in some group's `owners`
for that provider, are ever moved: someone else's repo turning private or revoking access looks