mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-27 19:41:11 +01:00
fix(task): revert to context based approach and fix tasks stuck, improve error handling
This commit is contained in:
@@ -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)
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user