FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.
C++ ai-agentsalgorithmic-tradingbloomberg-terminalcppfinancefinancial-marketsfintechgood-first-issueinvestmentinvestment-researchmachine-learningopensourcepythonqtquantitative-financestock-markettrading
fix: connect PythonWorker to setup_complete to avoid daemon deadlock
Marcello Mendof75a3b937525
diff --git a/fincept-qt/src/python/PythonWorker.cpp b/fincept-qt/src/python/PythonWorker.cppindex f0aaf0498..cf4daa94d 100644--- a/fincept-qt/src/python/PythonWorker.cpp+++ b/fincept-qt/src/python/PythonWorker.cpp@@ -50,6 +50,14 @@ PythonWorker::PythonWorker() {connect(&PythonRunner::instance(), &PythonRunner::python_ready, this, [this]() {ensure_started();});++ connect(&PythonSetupManager::instance(), &PythonSetupManager::setup_complete, this, [this](bool success, const QString& /*error*/) {+ if (success) {+ LOG_INFO("PythonWorker", "Python/Venv setup completed successfully. Resetting restart budget and starting daemon.");+ restart_count_ = 0;+ ensure_started();+ }+ });}PythonWorker::~PythonWorker() {