fix gateway restart (#593)
This commit is contained in:
committed by
GitHub
Unverified
parent
8029b507ba
commit
2471228cc2
@@ -1361,9 +1361,10 @@ function registerGatewayHandlers(
|
||||
* For checking package status and channel configuration
|
||||
*/
|
||||
function registerOpenClawHandlers(gatewayManager: GatewayManager): void {
|
||||
// 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']);
|
||||
// Plugin-based channels require a full Gateway process restart to properly
|
||||
// initialize / tear-down plugin connections. SIGUSR1 in-process reload is
|
||||
// not sufficient for channel plugins (see restartGatewayForAgentDeletion).
|
||||
const forceRestartChannels = new Set(['dingtalk', 'wecom', 'whatsapp', 'feishu', 'qqbot']);
|
||||
|
||||
const scheduleGatewayChannelRestart = (reason: string): void => {
|
||||
if (gatewayManager.getStatus().state !== 'stopped') {
|
||||
|
||||
Reference in New Issue
Block a user