stability fixes, lower updates
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user