-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: remove BullMQ task scheduling system #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Remove the BullMQ-based task scheduling functionality as it was broken and needs to be redesigned. The Discord bot feature for marking media as finished is preserved. Changes: - Remove queue.ts, worker.ts, scheduler.ts core files - Remove scheduler API route (/api/admin/maintenance/schedulers) - Remove triggerManualScan and triggerDeletion operations - Remove scheduler sync calls from maintenance rules actions - Remove Redis configuration from example.env - Remove bullmq, ioredis, and @types/ioredis dependencies - Update RuleList component to remove scan button - Clean up related tests The maintenance rule CRUD operations remain functional. Scanning and deletion operations will need to be redesigned with a different approach. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
PR Review: Remove BullMQ Task Scheduling SystemSummaryThis PR successfully removes the BullMQ-based task scheduling infrastructure and its dependencies (bullmq, ioredis) from the codebase. The changes are clean, well-tested, and appropriately scoped. ✅ Strengths1. Thorough Cleanup
2. Excellent Test Coverage
3. Clear Documentation
4. Clean Code Patterns
5. Preserves Core Functionality
🔍 Code Quality ObservationsWell-Handled Edge Cases
TypeScript Safety
|
Summary
Changes Made
lib/maintenance/queue.ts,worker.ts,scheduler.ts/api/admin/maintenance/schedulerstriggerManualScanandtriggerDeletionoperationsWhat Still Works
What Needs Redesign
The task scheduling system was broken and needs to be rethought. This PR removes the broken implementation to clean up the codebase.
Test plan
🤖 Generated with Claude Code