更新自动处理示例和忽略测试目录
Some checks failed
CI Pipeline / 测试和基准测试 (1.24.x) (push) Failing after 4s
CI Pipeline / 测试和基准测试 (1.25.x) (push) Failing after 4s
CI Pipeline / 构建验证 (amd64, darwin) (push) Has been skipped
CI Pipeline / 构建验证 (amd64, linux) (push) Has been skipped
CI Pipeline / 构建验证 (amd64, windows) (push) Has been skipped
CI Pipeline / 构建验证 (arm64, darwin) (push) Has been skipped
CI Pipeline / 构建验证 (arm64, linux) (push) Has been skipped
CI Pipeline / 安全扫描 (push) Failing after 4s
CI Pipeline / 代码质量检查 (push) Failing after 4s
CI Pipeline / 性能回归测试 (push) Has been skipped
CI Pipeline / 通知 (push) Failing after 1s

- 更新 examples/auto-processing/main.go 中的示例代码
- 在 .gitignore 中添加 examples/test-empty/ 目录忽略规则
This commit is contained in:
Pipeline Database
2025-09-30 18:40:19 +08:00
parent 6f78cdd8a9
commit db6721300a
2 changed files with 6 additions and 2 deletions

3
.gitignore vendored
View File

@@ -50,3 +50,6 @@ Thumbs.db
# YAML 检查配置
.yamllint
# 测试目录
examples/test-empty/

View File

@@ -117,7 +117,7 @@ func main() {
signal.Notify(sigChan, syscall.SIGINT, syscall.SIGTERM)
// 启动数据生产者
go dataProducer(ctx, pdb)
// go dataProducer(ctx, pdb) // 暂时注释掉,测试空数据库性能
// 启动状态监控
go statusMonitor(ctx, pdb)
@@ -126,7 +126,8 @@ func main() {
go systemMonitor(ctx)
fmt.Println("📊 自动处理已启动,按 Ctrl+C 停止...")
fmt.Println("🔍 观察数据的自动状态流转: Hot → Warm → Cold")
fmt.Println("🔍 测试空数据库性能 - 没有数据生产者")
fmt.Println("💻 观察系统资源监控和空闲状态")
fmt.Println()
// 等待中断信号