Commit Graph
5 Commits
Author SHA1 Message Date
komissarovyv 6cd0b2c712 Add internal module leader recompute event
The queue gets a payload kind of its own to recompute a module leader, with the
compaction key module_leader_<moduleId> so the collapse of ready and
disconnected into one module_lifecycle_<moduleId> event cannot swallow it.

The event is inserted next to the events of the same change: on a connect, on a
disconnect by WebSocket close, and on the phantom cleanup of the own node.
Graceful shutdown by DeleteOwnBackends keeps inserting no events. The payload
carries the leader address before and after the change, derived from the module
instances that are already loaded, so the event worker reads nothing from the
database. No new columns, no new tables, no new migrations.
2026-11-18 21:29:23 +03:00
Кузнецов Иван Александрович 29c1a4deeb MSP-5223 update .golangci.yml + fix linters 2025-04-11 14:15:30 +03:00
d1slike b2e34c00a4 Implement api 2024-05-08 15:40:14 +03:00
d1slike 80a99c425b Implement event stream 2024-05-07 20:16:44 +03:00
d1slike c4abdaa54b Implement lifecycle 2024-05-06 20:09:14 +03:00