Stabilize gateway reload/restart behavior and remove doctor --json dependency (#504)
This commit is contained in:
committed by
GitHub
Unverified
parent
89bda3c7af
commit
7f3408559d
@@ -1355,7 +1355,9 @@ function registerGatewayHandlers(
|
||||
* For checking package status and channel configuration
|
||||
*/
|
||||
function registerOpenClawHandlers(gatewayManager: GatewayManager): void {
|
||||
const forceRestartChannels = new Set(['dingtalk', 'wecom', 'feishu', 'whatsapp']);
|
||||
// Keep reload-first for feishu to avoid restart storms when channel auth/network is flaky.
|
||||
// GatewayManager.reload() already falls back to restart when reload is unhealthy.
|
||||
const forceRestartChannels = new Set(['dingtalk', 'wecom', 'whatsapp']);
|
||||
|
||||
const scheduleGatewayChannelRestart = (reason: string): void => {
|
||||
if (gatewayManager.getStatus().state !== 'stopped') {
|
||||
|
||||
Reference in New Issue
Block a user