mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-03 19:44:39 -04:00
Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
19 lines
665 B
Go
19 lines
665 B
Go
package advisorylock
|
|
|
|
// Advisory lock keys for distributed coordination via PostgreSQL.
|
|
// These keys are global across the database — avoid collisions with
|
|
// other applications sharing the same PostgreSQL instance.
|
|
const (
|
|
KeyCronScheduler int64 = 100
|
|
KeyStaleNodeCleanup int64 = 101
|
|
KeyGalleryDedup int64 = 102
|
|
KeyAgentScheduler int64 = 103
|
|
KeyHealthCheck int64 = 104
|
|
KeySchemaMigrate int64 = 105
|
|
KeyBackendUpgradeCheck int64 = 106
|
|
KeyStateReconciler int64 = 107
|
|
// KeyFailoverProber elects the one frontend that probes failover
|
|
// targets, decides chains and preloads warm targets.
|
|
KeyFailoverProber int64 = 108
|
|
)
|