stability fixes, lower updates

This commit is contained in:
Dobromir Popov
2025-07-26 22:32:45 +03:00
parent 9576c52039
commit 7c61c12b70
9 changed files with 1210 additions and 45 deletions

View File

@ -41,16 +41,16 @@ class DashboardLayoutManager:
def _create_interval_component(self):
"""Create the auto-refresh interval components with different frequencies"""
return html.Div([
# Main interval for regular UI updates (1 second)
# Fast interval for critical updates (2 seconds - reduced from 1s)
dcc.Interval(
id='interval-component',
interval=1000, # Update every 1000 ms (1 Hz)
interval=2000, # Update every 2000 ms (0.5 Hz) - OPTIMIZED
n_intervals=0
),
# Slow interval for non-critical updates (5 seconds)
# Slow interval for non-critical updates (10 seconds - increased from 5s)
dcc.Interval(
id='slow-interval-component',
interval=5000, # Update every 5 seconds (0.2 Hz)
interval=10000, # Update every 10 seconds (0.1 Hz) - OPTIMIZED
n_intervals=0
),
# WebSocket-based updates for high-frequency data (no interval needed)