debug: Add comprehensive debug output and test signals
- Add time import for test result generation - Add test signal emissions to verify GUI connection works - Add debug prints for signal establishment - Test both result_updated and terminal_output signals - This will help identify if the issue is signal connection or data flow
This commit is contained in:
parent
6245e25a33
commit
dc36f1436b
@ -23,6 +23,7 @@ import sys
|
||||
import json
|
||||
import threading
|
||||
import traceback
|
||||
import time
|
||||
from typing import Dict, Any, List, Optional
|
||||
from PyQt5.QtWidgets import (
|
||||
QDialog, QVBoxLayout, QHBoxLayout, QLabel, QTextEdit, QPushButton,
|
||||
@ -147,6 +148,20 @@ class DeploymentWorker(QThread):
|
||||
self.result_updated.emit(result_dict)
|
||||
|
||||
self.orchestrator.set_result_callback(combined_result_callback)
|
||||
|
||||
# Test emit a sample result to verify GUI connection
|
||||
test_result = {
|
||||
'pipeline_id': 'test_pipeline',
|
||||
'timestamp': time.time(),
|
||||
'stage_results': {
|
||||
'test_stage': (-0.5, 'Test Result')
|
||||
},
|
||||
'metadata': {}
|
||||
}
|
||||
print("🔍 DEBUG: Emitting test result to verify GUI connection")
|
||||
self.result_updated.emit(test_result)
|
||||
self.terminal_output.emit("🧪 TEST: This is a test terminal message")
|
||||
|
||||
self.orchestrator.start()
|
||||
|
||||
self.progress_updated.emit(100, "Pipeline deployed successfully!")
|
||||
@ -660,6 +675,9 @@ Stage Configurations:
|
||||
self.deployment_worker.result_updated.connect(self.update_inference_results)
|
||||
self.deployment_worker.terminal_output.connect(self.update_terminal_output)
|
||||
|
||||
# Test the signal connections
|
||||
print("🔍 DEBUG: Signal connections established")
|
||||
|
||||
self.deployment_worker.start()
|
||||
|
||||
def stop_deployment(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user