fix(task): revert to context based approach and fix tasks stuck, improve error handling

This commit is contained in:
yusing
2025-05-26 00:32:59 +08:00
parent 2e9f113224
commit 216c03c5ff
11 changed files with 200 additions and 183 deletions

View File

@@ -95,7 +95,7 @@ func (mon *monitor) Start(parent task.Parent) gperr.Error {
defer func() {
if mon.status.Load() != health.StatusError {
mon.status.Store(health.StatusUnknown)
mon.status.Store(health.StatusUnhealthy)
}
mon.task.Finish(nil)
}()