e8f48c6d37
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>
14 lines
436 B
Go
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)
|
|
}
|