hupeh 1f9f1cab53 feat: 添加监控仪表盘
- 新增 Lit.js 组件化 UI (ui/ 目录)
  - tasks-chart: 带十字准星和拖拽选择的图表
  - queue-table: 队列列表,支持暂停/恢复
  - queue-modal: 队列详情弹窗,支持任务重试
  - time-range-picker: Prometheus 风格时间选择器
  - help-tooltip: 可复用的提示组件

- HTTPHandler 功能
  - SSE 实时推送 (stats + queues)
  - 队列暂停/恢复 API
  - 任务重试 API
  - 时间范围查询 API

- Inspector 改进
  - Prometheus 风格单表存储
  - 集成到 Start/Stop 生命周期
  - 新增 PauseQueue/UnpauseQueue/RunTask 方法

- 代码重构
  - Start 函数拆分为小函数
  - 优雅关闭流程优化

- 其他
  - 忽略 SQLite 数据库文件
  - example 添加延迟/定点任务示例
2025-12-09 19:58:18 +08:00
2025-12-09 19:58:18 +08:00
2025-12-09 19:58:18 +08:00
2025-12-09 19:58:18 +08:00
2025-12-09 19:58:18 +08:00
2025-12-09 19:58:18 +08:00
2025-12-09 19:58:18 +08:00
2025-12-09 19:58:18 +08:00
2025-12-09 14:33:07 +08:00
2025-12-09 14:33:07 +08:00
2025-12-09 19:58:18 +08:00
2025-12-09 19:58:18 +08:00

TaskQ - Task Queue Management System

A Go-based task queue management system for efficient task processing and management.

Features

  • Task queue management
  • Dashboard interface
  • Task inspection and monitoring
  • Concurrent task processing

Installation

go mod download

Usage

go run .

Project Structure

  • taskq.go - Main application entry point
  • task.go - Task definition and management
  • inspect.go - Task inspection utilities
  • dashboard.html - Web dashboard interface
  • example/ - Example implementations

Development

# Run the application
go run .

# Run tests
go test ./...

# Build
go build -o taskq

License

MIT License

Description
No description provided
Readme MIT 151 KiB
Languages
Go 55.5%
JavaScript 38.2%
CSS 4.6%
HTML 1.3%
Makefile 0.4%