JSON slog в ключевых пакетах; Prometheus path_group, job_audit_depth, upstream breaker; job_audit ClaimQueued/ReclaimStaleRunning + Adopt loop для HA после рестарта. Co-authored-by: Cursor <[email protected]>
21 lines
762 B
Go
21 lines
762 B
Go
// Package broker holds optional hooks for a future shared message bus (NATS JetStream / Redis).
|
|
// См. docs/architecture.md: в текущей сборке очередь задач in-process в API; EVOBGP_BROKER_URL зарезервирован.
|
|
package broker
|
|
|
|
import (
|
|
"context"
|
|
"evobgp/internal/logging"
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
// LogConnect logs once when EVOBGP_BROKER_URL is set. Multi-process job delivery via a broker is not enabled in this build.
|
|
func LogConnect(ctx context.Context, brokerURL string) {
|
|
u := strings.TrimSpace(brokerURL)
|
|
if u == "" {
|
|
return
|
|
}
|
|
logging.Default().Info(fmt.Sprintf("broker: EVOBGP_BROKER_URL=%q set; control plane still uses in-process jobs.Registry (no JetStream/Redis consumer in this binary)", u))
|
|
_ = ctx
|
|
}
|