Validate reports whether the scheduler backlog filters are internally consistent.
(path string)
| 975 | |
| 976 | // Validate reports whether the scheduler backlog filters are internally consistent. |
| 977 | func (q SchedulerBacklogQuery) Validate(path string) error { |
| 978 | if q.Scope.Normalize() == "" { |
| 979 | return nil |
| 980 | } |
| 981 | return ValidateScopeBinding(q.Scope, q.WorkspaceID, path, "workspace_id") |
| 982 | } |
| 983 | |
| 984 | // Validate reports whether the task-run query filters are internally consistent. |
| 985 | func (q RunQuery) Validate(path string) error { |
nothing calls this directly
no test coverage detected