Fix stale task polling by keeping it always active alongside WebSocket
Polling was disabled when wsConnected was true, but if the WS connected while workers hadn't been redeployed (no pub/sub messages flowing), the UI received no updates at all. Polling now always runs at 5s as the baseline. WebSocket provides faster real-time updates on top when available — the two coexist, last writer wins.
This commit is contained in:
parent
f3cbeb3f5e
commit
8d52bdf99d
2 changed files with 5 additions and 6 deletions
|
|
@ -59,7 +59,7 @@ export const DEFAULT_FORM_VALUES = {
|
|||
|
||||
// Polling intervals
|
||||
export const POLLING_INTERVALS = {
|
||||
TASK_STATUS_MS: 30000, // 30 seconds (fallback when WebSocket is unavailable)
|
||||
TASK_STATUS_MS: 5000, // 5 seconds
|
||||
} as const;
|
||||
|
||||
// WebSocket paths
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue