feat(runner): implement cluster mode with Redis-based task dispatching and registry
Introduce a distributed task execution system for gRPC runners. This includes: - A `TaskBus` for cluster-mode task dispatching via Redis Pub/Sub. - A `RunnerRegistry` to track active runner instances in Redis. - Support for both standalone and cluster modes via configuration. - Refactored `RunnerHub` and `TaskManager` to use a `TaskDispatcher` interface, decoupling task submission from local execution. - Added distributed locking to `HotRankWorker` to ensure only one instance performs periodic hot rank recalculations in a multi-instance deployment. - Updated dependency injection (Wire) to support the new runner components and registry.
This commit is contained in:
@@ -778,6 +778,12 @@ type SetGroupAvatarParams struct {
|
||||
Avatar string `json:"avatar"` // 头像URL
|
||||
}
|
||||
|
||||
// SetGroupDescriptionParams 设置群描述参数
|
||||
type SetGroupDescriptionParams struct {
|
||||
GroupID string `json:"group_id"` // 群组ID
|
||||
Description string `json:"description"` // 群描述
|
||||
}
|
||||
|
||||
// SetGroupLeaveParams 退出群组参数
|
||||
type SetGroupLeaveParams struct {
|
||||
GroupID string `json:"group_id"` // 群组ID
|
||||
|
||||
Reference in New Issue
Block a user