fix(task): refactor task module and fix reload stuck/error, fix some logic

This commit is contained in:
yusing
2025-05-28 22:07:13 +08:00
parent c90795e614
commit 2628d9e8a8
14 changed files with 371 additions and 443 deletions

View File

@@ -12,12 +12,6 @@ func panicWithDebugStack() {
panic(string(debug.Stack()))
}
func panicIfFinished(t *Task, reason string) {
if t.isFinished() {
log.Panic().Msg("task " + t.String() + " is finished but " + reason)
}
}
func logStarted(t *Task) {
log.Info().Msg("task " + t.String() + " started")
}