fix(server): add graceful shutdown on SIGTERM and SIGINT to reset connected characters - #105
Conversation
…nected characters
…e callbacks in gracefulShutdown
|
Updated commit pushed:
|
Code Review ✅ Approved 2 resolved / 2 findingsAdds graceful shutdown handlers for SIGTERM and SIGINT to reset connected characters and close servers cleanly, addressing the broken createDynamicScheduler syntax error and premature process exit issues. ✅ 2 resolved✅ Bug: Broken createDynamicScheduler call — syntax error, sweep removed
✅ Bug: process.exit(0) fires before wsServer/httpServer.close() completes
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
Description
Closes #26
Este PR implementa el manejo de apagado graceful (
SIGTERMySIGINT) en el servidor para desmarcar los personajes conectados en la base de datos antes de finalizar el proceso, evitando que queden bloqueados tras un reinicio o deploy.Cambios realizados
SIGTERMySIGINTconectado agracefulShutdown.handleProtocol.consoleToAll.POST /internal/characters/reset-connectedpara desmarcar personajes activos en la DB.Bounty Payout Addresses
LPnftYop8yhRNQZstysT3vuJf3XkpQWKTC0x32BB3df5B74a594956a0f33Bc353511Fa759FCa48Xo39uq9LoaM2rQEkgaaSfuThqHZTd18yGdJSXffkLwMbc1qpyu6866qcgt26sqw4dn2mlmp8d0yc657fuedkvDDMU6D9TCE3BhqqYyy7MUZQD7JhfL39FpE