Skip to content

feat(import): preserve failed NZBs + auto-cleanup stale failed items - #423

Merged
javi11 merged 9 commits into
mainfrom
feat/preserve-failed-nzbs-auto-cleanup
Mar 20, 2026
Merged

feat(import): preserve failed NZBs + auto-cleanup stale failed items#423
javi11 merged 9 commits into
mainfrom
feat/preserve-failed-nzbs-auto-cleanup

Conversation

@javi11

@javi11 javi11 commented Mar 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Always preserve failed NZBs: Removes the delete_failed_nzb config option — failed NZBs are now always moved to the .nzbs/failed/ folder, enabling users to retry imports
  • Auto-cleanup stale failed items: Adds failed_item_retention_hours config (default 24h, 0=disabled) that automatically removes old failed queue items and their NZB files via a background goroutine
  • Frontend updates: Removes "Clean Failed NZBs" checkbox from Metadata settings, adds "Failed Item Retention (Hours)" input to Import/Queue Maintenance section

Test plan

  • Fail an import → verify NZB is always in .nzbs/failed/ folder, never deleted
  • Verify failed queue item + NZB file are cleaned up after retention period expires
  • Set retention to 0 → verify cleanup is disabled
  • Verify frontend shows retention hours field in Import config
  • Verify "Clean Failed NZBs" checkbox is gone from Metadata config
  • go build ./... passes
  • bun run check passes
  • go test ./internal/database/... and go test ./internal/importer/... pass

🤖 Generated with Claude Code

javi11 and others added 9 commits March 11, 2026 23:07
Analyze multiple RAR archive groups concurrently using goroutines,
reducing import time for NZBs with multiple separate RAR sets (e.g. season packs).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ed items

Remove the `delete_failed_nzb` config option — failed NZBs are now always
moved to the failed folder so users can retry. Add configurable auto-cleanup
that removes stale failed queue items and their NZB files after a retention
period (default 24h, 0 to disable) via `failed_item_retention_hours` in the
import config section.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@javi11
javi11 merged commit 4c4beac into main Mar 20, 2026
2 checks passed
@javi11
javi11 deleted the feat/preserve-failed-nzbs-auto-cleanup branch March 20, 2026 07:57
yoshitaka420 pushed a commit to yoshitaka420/altmount that referenced this pull request Jun 1, 2026
…ipsilabs#423)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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