MCPcopy Create free account
hub / github.com/bytebase/bytebase / planCheckBudget

Method planCheckBudget

backend/api/mcp/tool_change.go:341–346  ·  view source on GitHub ↗

planCheckBudget returns the effective poll budget, allowing tests to override.

()

Source from the content-addressed store, hash-verified

339
340// planCheckBudget returns the effective poll budget, allowing tests to override.
341func (s *Server) planCheckBudget() time.Duration {
342 if s.planCheckPollBudgetOverride > 0 {
343 return s.planCheckPollBudgetOverride
344 }
345 return planCheckPollBudget
346}
347
348// runPlanChecks triggers plan checks and polls for results within the poll budget.
349func (s *Server) runPlanChecks(ctx context.Context, planName string) *PlanCheckInfo {

Callers 1

runPlanChecksMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected