浅浅升级一下
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m8s

This commit is contained in:
2026-05-06 14:41:14 +08:00
parent b0bd37ec12
commit 3a2e3f2571
16 changed files with 1490 additions and 106 deletions

11
pkg/constants/worker.go Normal file
View File

@@ -0,0 +1,11 @@
package constants
// Worker 角色常量
const (
// WorkerRoleAll 兼容单实例模式,启动全部 Worker 模块
WorkerRoleAll = "all"
// WorkerRoleLeader 单例调度模式,启动全部 Worker 模块
WorkerRoleLeader = "leader"
// WorkerRoleConsumer 消费者模式,只启动队列消费相关模块
WorkerRoleConsumer = "consumer"
)