Compare commits

..

No commits in common. "d1d6bd5ae8a3044058809e49232fb0e9de47edaf" and "eac0fbcf340c3a2ee2bbe641669135e162321c1a" have entirely different histories.

3 changed files with 17 additions and 20 deletions

View File

@ -1,8 +1,5 @@
# 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-06-21 - **Date**: 2026-05-14
- **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 | 1.00s | | TestGracefulStop | PASS | 2.04s |
## Benchmarks ## Benchmarks
| Benchmark | Iterations | ns/op | | Benchmark | Iterations | ns/op | B/op | allocs/op |
|-----------|------------|-------| |-----------|------------|-------|------|-----------|
| BenchmarkTaskRegistration | 4059084 | 294.0 | | BenchmarkTaskRegistration | 3966831 | 308.0 | 272 | 5 |
| BenchmarkTaskExecutionOverhead/Get | 51555876 | 19.81 | | BenchmarkTaskExecutionOverhead/Get | 52783425 | 22.35 | 0 | 0 |
| BenchmarkTaskExecutionOverhead/List | 9835569 | 106.5 | | BenchmarkTaskExecutionOverhead/List | 10555030 | 113.3 | 32 | 2 |
## 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.8 apigo.cc/go/log v1.5.4
github.com/robfig/cron/v3 v3.0.1 github.com/robfig/cron/v3 v3.0.1
) )
require apigo.cc/go/jsmod v1.5.3 // indirect require apigo.cc/go/jsmod v1.5.0 // indirect
require ( require (
apigo.cc/go/cast v1.5.3 // indirect apigo.cc/go/cast v1.5.0 // indirect
apigo.cc/go/config v1.5.3 // indirect apigo.cc/go/config v1.5.1 // indirect
apigo.cc/go/encoding v1.5.4 // indirect apigo.cc/go/encoding v1.5.0 // indirect
apigo.cc/go/file v1.5.5 // indirect apigo.cc/go/file v1.5.0 // indirect
apigo.cc/go/id v1.5.4 // indirect apigo.cc/go/id v1.5.0 // indirect
apigo.cc/go/rand v1.5.3 // indirect apigo.cc/go/rand v1.5.0 // indirect
apigo.cc/go/safe v1.5.2 // indirect apigo.cc/go/safe v1.5.0 // indirect
apigo.cc/go/shell v1.5.3 // indirect apigo.cc/go/shell v1.5.0 // 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