Files
geo/server/internal/tenant/app/monitoring_errors.go
T
root e8f48c6d37 refactor(monitoring): consolidate workers and extract to scheduler process
Remove standalone lease-recovery, received-inspection, and result-recovery
workers from tenant-api (now handled by scheduler process). Add configurable
concurrency to ingest and projection-rebuild workers via MonitoringWorkers
runtime config. Extract shared runtime types for worker configuration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 14:19:57 +08:00

14 lines
436 B
Go

package app
import "github.com/geo-platform/tenant-api/internal/shared/response"
func monitoringInternalError(code int, message, detail string, cause error) *response.AppError {
appErr := response.ErrInternal(code, message, detail)
appErr.Cause = cause
return appErr
}
func InternalMonitoringError(code int, message, detail string, cause error) *response.AppError {
return monitoringInternalError(code, message, detail, cause)
}