chore(task): 对齐依赖版本并更新文档(by AI)

This commit is contained in:
AI Engineer 2026-06-21 10:33:02 +08:00
parent 3e55a7e22a
commit d1d6bd5ae8
3 changed files with 20 additions and 17 deletions

View File

@ -1,5 +1,8 @@
# Changelog # Changelog
## v1.5.4 - 2026-06-21
- **依赖更新**: 升级依赖 `jsmod``v1.5.3``cast``v1.5.3``rand``v1.5.3``encoding``v1.5.4``shell``v1.5.3``safe``v1.5.2``id``v1.5.4``file``v1.5.5``config``v1.5.3``log``v1.5.8`
## v1.5.2 - 2026-06-05 ## v1.5.2 - 2026-06-05
- **优化: 生命周期日志清理**: - **优化: 生命周期日志清理**:
- 移除了内部冗余的 `scheduler started``scheduler stopped gracefully` 控制台输出。这些状态现由 `apigo.cc/go/starter` 框架统一劫持并提供标准化的生命周期审计。 - 移除了内部冗余的 `scheduler started``scheduler stopped gracefully` 控制台输出。这些状态现由 `apigo.cc/go/starter` 框架统一劫持并提供标准化的生命周期审计。

14
TEST.md
View File

@ -1,7 +1,7 @@
# Test Report # Test Report
## Environment ## Environment
- **Date**: 2026-05-14 - **Date**: 2026-06-21
- **Go Version**: go 1.25.0 - **Go Version**: go 1.25.0
- **OS**: darwin/amd64 - **OS**: darwin/amd64
@ -14,14 +14,14 @@
| TestTaskTimeout | PASS | 2.50s | | TestTaskTimeout | PASS | 2.50s |
| TestTaskPanicRecover | PASS | 2.50s | | TestTaskPanicRecover | PASS | 2.50s |
| TestTaskManualRun | PASS | 0.20s | | TestTaskManualRun | PASS | 0.20s |
| TestGracefulStop | PASS | 2.04s | | TestGracefulStop | PASS | 1.00s |
## Benchmarks ## Benchmarks
| Benchmark | Iterations | ns/op | B/op | allocs/op | | Benchmark | Iterations | ns/op |
|-----------|------------|-------|------|-----------| |-----------|------------|-------|
| BenchmarkTaskRegistration | 3966831 | 308.0 | 272 | 5 | | BenchmarkTaskRegistration | 4059084 | 294.0 |
| BenchmarkTaskExecutionOverhead/Get | 52783425 | 22.35 | 0 | 0 | | BenchmarkTaskExecutionOverhead/Get | 51555876 | 19.81 |
| BenchmarkTaskExecutionOverhead/List | 10555030 | 113.3 | 32 | 2 | | BenchmarkTaskExecutionOverhead/List | 9835569 | 106.5 |
## Details ## Details

20
go.mod
View File

@ -3,21 +3,21 @@ module apigo.cc/go/task
go 1.25.0 go 1.25.0
require ( require (
apigo.cc/go/log v1.5.6 apigo.cc/go/log v1.5.8
github.com/robfig/cron/v3 v3.0.1 github.com/robfig/cron/v3 v3.0.1
) )
require apigo.cc/go/jsmod v1.5.2 // indirect require apigo.cc/go/jsmod v1.5.3 // indirect
require ( require (
apigo.cc/go/cast v1.5.2 // indirect apigo.cc/go/cast v1.5.3 // indirect
apigo.cc/go/config v1.5.2 // indirect apigo.cc/go/config v1.5.3 // indirect
apigo.cc/go/encoding v1.5.3 // indirect apigo.cc/go/encoding v1.5.4 // indirect
apigo.cc/go/file v1.5.4 // indirect apigo.cc/go/file v1.5.5 // indirect
apigo.cc/go/id v1.5.3 // indirect apigo.cc/go/id v1.5.4 // indirect
apigo.cc/go/rand v1.5.2 // indirect apigo.cc/go/rand v1.5.3 // indirect
apigo.cc/go/safe v1.5.1 // indirect apigo.cc/go/safe v1.5.2 // indirect
apigo.cc/go/shell v1.5.2 // indirect apigo.cc/go/shell v1.5.3 // indirect
golang.org/x/crypto v0.52.0 // indirect golang.org/x/crypto v0.52.0 // indirect
golang.org/x/sys v0.45.0 // indirect golang.org/x/sys v0.45.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect