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

Function validateWorkerAssignment

controlplane/worker_state.go:218–226  ·  view source on GitHub ↗
(assignment *WorkerAssignment)

Source from the content-addressed store, hash-verified

216}
217
218func validateWorkerAssignment(assignment *WorkerAssignment) error {
219 if assignment == nil {
220 return fmt.Errorf("missing assignment")
221 }
222 if assignment.OrgID == "" {
223 return fmt.Errorf("missing org ID")
224 }
225 return nil
226}
227
228func cloneWorkerAssignment(assignment *WorkerAssignment) *WorkerAssignment {
229 if assignment == nil {

Callers 4

ValidateMethod · 0.85
resolveWorkerAssignmentFunction · 0.85
claimSpecificWorkerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected