diff --git a/cluster4npu_ui/ui/dialogs/deployment.py b/cluster4npu_ui/ui/dialogs/deployment.py index 42039f9..ad19db8 100644 --- a/cluster4npu_ui/ui/dialogs/deployment.py +++ b/cluster4npu_ui/ui/dialogs/deployment.py @@ -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):