feat(errorHandle): add service error handling and recovery logic
Implement error handling mechanism with retry logic for failed services. Includes: - ServiceControl struct to track service state - HandleErrorProcess function to attempt service restarts - Integration with monitor to automatically recover services - Enhanced exception handling with status checks and monitoring restart
This commit is contained in:
13
errorHandle/vars.go
Normal file
13
errorHandle/vars.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package errorHandle
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type ServiceControl struct {
|
||||
ServiceName string
|
||||
RetryCount int
|
||||
ErrorType string
|
||||
ErrorMsg string
|
||||
ErrorTime time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user