- 新增 Kafka 消费者实现,支持消息处理和错误处理。 - 实现 OffsetTracker 类,用于跟踪消息偏移量。 - 新增消息解析和数据库插入逻辑,支持从 Kafka 消息构建数据库行。 - 实现 UDP 数据包解析功能,支持不同类型的 UDP 消息。 - 新增 Redis 错误队列处理,支持错误重试机制。 - 实现 Redis 客户端和集成类,支持日志记录和心跳机制。 - 添加 Zod 验证模式,确保 Kafka 消息有效性。 - 新增日志记录和指标收集工具,支持系统监控。 - 添加 UUID 生成工具,支持唯一标识符生成。 - 编写处理器逻辑的单元测试,确保功能正确性。 - 配置 Vite 构建工具,支持 Node.js 环境下的构建。
8 lines
406 B
PowerShell
8 lines
406 B
PowerShell
$ErrorActionPreference = "Stop"
|
|
Remove-Item -Force out.log -ErrorAction SilentlyContinue
|
|
$p = Start-Process -FilePath node -ArgumentList 'src/index.js' -WorkingDirectory (Get-Location).Path -RedirectStandardOutput 'out.log' -RedirectStandardError 'out.log' -PassThru
|
|
Start-Sleep -Seconds 30
|
|
Stop-Process -Id $p.Id -Force
|
|
Start-Sleep -Seconds 1
|
|
Add-Content -Path out.log -Value "[runner] stopped after 30s"
|