MCPcopy Create free account
hub / github.com/PostHog/duckgres / SetSharedState

Method SetSharedState

controlplane/worker_mgr.go:75–81  ·  view source on GitHub ↗

SetSharedState updates the additive shared worker lifecycle metadata without changing existing session scheduling behavior.

(state SharedWorkerState)

Source from the content-addressed store, hash-verified

73 return w.profile
74}
75
76// SharedState returns the additive shared worker lifecycle metadata for
77// this worker. The zero value normalizes to an idle, unassigned worker.
78func (w *ManagedWorker) SharedState() SharedWorkerState {
79 return cloneSharedWorkerState(w.sharedState)
80}
81
82// SetSharedState updates the additive shared worker lifecycle metadata
83// without changing existing session scheduling behavior.
84func (w *ManagedWorker) SetSharedState(state SharedWorkerState) error {

Calls 2

cloneSharedWorkerStateFunction · 0.85
ValidateMethod · 0.80