merge training system

This commit is contained in:
Dobromir Popov
2025-08-23 16:27:05 +03:00
parent 81749ee18e
commit f86457fc38
8 changed files with 166 additions and 8 deletions

View File

@@ -8149,12 +8149,12 @@ class CleanTradingDashboard:
'price_at_prediction': self._get_current_price(symbol)
}
# Sleep for 10 seconds (0.1Hz prediction rate for cold start)
time.sleep(10.0)
# Sleep for 2 seconds to improve GPU utilization and responsiveness
time.sleep(2.0)
except Exception as e:
logger.error(f"Error in CNN prediction worker: {e}")
time.sleep(10.0) # Wait same interval on error
time.sleep(2.0) # Wait same interval on error
# Start the worker thread
import threading