fix: restore channels after gateway restart

This commit is contained in:
hectorzhao
2026-08-26 14:04:44 +08:00
parent 8170f727a3
commit b7ae1aa41a
4 changed files with 13 additions and 4 deletions
+4 -4
View File
@@ -241,8 +241,6 @@ else
systemctl enable --now cmpp-api cmpp-send-worker cmpp-gateway nginx
fi
systemctl restart cmpp-security-agent
systemctl restart cmpp-api
systemctl restart cmpp-send-worker
if [[ "${SEND_SUBMIT_OUTBOX_SEPARATE_PROCESS_ENABLED:-false}" == "true" ]]; then
systemctl enable --now cmpp-submit-outbox
systemctl restart cmpp-submit-outbox
@@ -261,9 +259,11 @@ if [[ "${GATEWAY_PROTOCOL_LOG_STREAM_ENABLED:-false}" == "true" ]]; then
else
systemctl disable --now cmpp-protocol-log-worker 2>/dev/null || true
fi
# Gateway is restarted after the callback listener so supplier events never point
# at a callback port that has not completed Nest/Prisma initialization.
# Gateway is restarted after the callback listener, then API is restarted after
# Gateway so API startup reconciliation always restores the active channel set.
systemctl restart cmpp-gateway
systemctl restart cmpp-api
systemctl restart cmpp-send-worker
systemctl restart nginx
echo "[deploy] Health checks"