pacnpal
39061cbf3e
Added proper initialization control:
...
Setup lock in init.py to prevent concurrent cog loads
Check for existing cog instance to prevent duplicates
Setup_in_progress flag to track initialization state
Improved timeout handling and cleanup
Enhanced Queue Manager singleton pattern:
Class-level lock to prevent multiple instance creation
Consistent event naming with _init_event
Sequential component initialization
Proper lock ordering (global -> queue -> processing)
Improved state management:
Single source of truth for initialization state
Proper cleanup of resources on failure
Better error handling and logging
Timeout handling for all async operations
2024-11-15 23:09:55 +00:00
pacnpal
97e0d9c279
re-structure
2024-11-15 22:17:30 +00:00
pacnpal
484b0c0cb8
fix: Add robust error handling for cog loading - Add initialization timeout - Add proper cleanup on failure - Add teardown function - Add proper logging - Add proper cog removal order
2024-11-15 01:04:25 +00:00
pacnpal
888ed27d17
fix: Improve cog loading order - Load main cog first - Wait for initialization - Load commands after successful init
2024-11-15 01:03:53 +00:00
pacnpal
533afd61ed
fix: Simplify cog initialization - Let Red handle command syncing - Remove manual sync operations - Clean up __init__.py files
2024-11-15 00:59:00 +00:00
pacnpal
770e74d63c
fix: Improve command registration and cleanup - Add proper command syncing - Add teardown function - Add error handling for sync operations
2024-11-15 00:57:24 +00:00
pacnpal
4e632276c2
fix: Resolve command registration issues - Separate command handling into VideoArchiverCommands - Update command registration in __init__.py - Remove duplicate command registration
2024-11-15 00:50:55 +00:00
pacnpal
ba71081687
fix: Properly implement slash commands - Use app_commands for slash command support - Add proper command group structure - Handle command registration and syncing
2024-11-15 00:45:13 +00:00
pacnpal
f3d28231e8
fix imports
2024-11-14 23:45:36 +00:00
pacnpal
171453ce57
fix imports
2024-11-14 23:09:28 +00:00
pacnpal
a0b3a56d4f
fix: Update cog initialization
...
- Added proper Red-DiscordBot cog setup
- Added end user data statement
- Improved module organization
2024-11-14 22:37:59 +00:00
pacnpal
2a50395bd7
fix: Add package __init__.py and fix imports
...
- Added videoarchiver/__init__.py to make it a proper package
- Fixed import statement in ffmpeg_manager.py to use local imports
2024-11-14 22:29:42 +00:00
pacnpal
73f142addd
fixed issues
2024-11-14 21:36:58 +00:00
pacnpal
e2fb53c73a
Add error handling to cog setup
...
- Add proper error logging during cog initialization
- Add CogLoadError handling
- Add logging configuration
2024-11-14 20:05:44 +00:00