WebSocketClient: High browser CPU usage when remote executor exits
nokome opened this issue · 0 comments
nokome commented
The WebSocketClient
contains logic to attempt re-connection if the connection is closed. This includes the use of retry
from the p-retry
package - which is supposed to have exponential backoff. However, I've noticed during testing that sometimes, when the remote executor is ended, that CPU usage goes up, probably due to something here:
executa/src/ws/WebSocketClient.ts
Lines 101 to 117 in 6b17920