mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 10:51:05 -05:00
fix(processor): add fallback to absolute imports in reactions.py
This commit is contained in:
@@ -15,6 +15,7 @@ modules_to_reload = [
|
||||
".processor.core",
|
||||
".processor.queue_processor",
|
||||
".queue",
|
||||
".queue.types", # Added types module
|
||||
".queue.models",
|
||||
".queue.manager",
|
||||
".queue.cleaners",
|
||||
|
||||
@@ -36,6 +36,7 @@ try:
|
||||
)
|
||||
from .message_handler import MessageHandler
|
||||
from .queue_handler import QueueHandler
|
||||
from .queue_processor import QueueProcessor # Added import
|
||||
from .reactions import (
|
||||
handle_archived_reaction,
|
||||
update_queue_position_reaction,
|
||||
@@ -76,6 +77,7 @@ except ImportError:
|
||||
)
|
||||
from videoarchiver.processor.message_handler import MessageHandler
|
||||
from videoarchiver.processor.queue_handler import QueueHandler
|
||||
from videoarchiver.processor.queue_processor import QueueProcessor # Added import
|
||||
from videoarchiver.processor.reactions import (
|
||||
handle_archived_reaction,
|
||||
update_queue_position_reaction,
|
||||
@@ -90,6 +92,7 @@ __all__ = [
|
||||
"VideoProcessor",
|
||||
"MessageHandler",
|
||||
"QueueHandler",
|
||||
"QueueProcessor", # Added export
|
||||
# URL Extraction
|
||||
"URLExtractor",
|
||||
"URLMetadata",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"""Queue management package for video processing"""
|
||||
|
||||
from .models import QueueItem, QueueMetrics
|
||||
from .types import QueuePriority, ProcessingMetrics
|
||||
from .manager import EnhancedVideoQueueManager
|
||||
from .persistence import QueuePersistenceManager, QueueError
|
||||
from .monitoring import QueueMonitor, MonitoringError
|
||||
@@ -23,27 +24,35 @@ from ..utils.progress_tracker import ProgressTracker
|
||||
from ..utils.url_validator import UrlValidator
|
||||
|
||||
__all__ = [
|
||||
# Queue models and types
|
||||
'QueueItem',
|
||||
'QueueMetrics',
|
||||
'QueuePriority',
|
||||
'ProcessingMetrics',
|
||||
# Core components
|
||||
'EnhancedVideoQueueManager',
|
||||
'QueuePersistenceManager',
|
||||
'QueueMonitor',
|
||||
'QueueCleaner',
|
||||
'QueueError',
|
||||
'MonitoringError',
|
||||
'CleanupError',
|
||||
'QueueProcessor',
|
||||
'HealthChecker',
|
||||
# Managers
|
||||
'RecoveryManager',
|
||||
'StateManager',
|
||||
'MetricsManager',
|
||||
'QueueProcessor',
|
||||
'HealthChecker',
|
||||
# Cleaners
|
||||
'GuildCleaner',
|
||||
'HistoryCleaner',
|
||||
'TrackingCleaner',
|
||||
# Utility handlers
|
||||
'CompressionHandler',
|
||||
'DirectoryManager',
|
||||
'DownloadManager',
|
||||
'FileOperations',
|
||||
'ProgressTracker',
|
||||
'UrlValidator',
|
||||
# Errors
|
||||
'QueueError',
|
||||
'MonitoringError',
|
||||
'CleanupError',
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user